- 1

Write a programme that will show how to find the area of a circle

A c++ programme

20th Mar 2019, 5:35 AM
kennedy mwendwa
7 Respostas
+ 5
int radius; float PI = 3.14; cin >> radius; float area = PI * radius * radius; cout << area; Here is a working example: https://code.sololearn.com/cQcxaW1oDkLw/?ref=app Hope this helps 😊
20th Mar 2019, 5:37 AM
Letsintegreat
Letsintegreat - avatar
20th Mar 2019, 5:46 AM
Letsintegreat
Letsintegreat - avatar
+ 1
you needed it in cpp! .. sorry.. I didn't see that 🙍
20th Mar 2019, 5:46 AM
Godana Emiru
Godana Emiru - avatar
0
in which language?
20th Mar 2019, 5:37 AM
Godana Emiru
Godana Emiru - avatar
0
Not really
20th Mar 2019, 5:45 AM
kennedy mwendwa
0
I feel inclined to remember you that we're supposed to assist, not write. ;-)
20th Mar 2019, 9:07 AM
HonFu
HonFu - avatar
- 2
int radius; float area; float pi = 3.14; void circle_area(){ area = pi*radius*radius; return area; } int main(){ circle_area(); }
20th Mar 2019, 5:44 AM
Godana Emiru
Godana Emiru - avatar