- 1
Write a programme that will show how to find the area of a circle
A c++ programme
7 Respuestas
+ 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 😊
+ 3
kennedy mwendwa Why?
+ 1
you needed it in cpp! .. sorry.. I didn't see that 🙍
0
in which language?
0
Not really
0
I feel inclined to remember you that we're supposed to assist, not write. ;-)
- 2
int radius;
float area;
float pi = 3.14;
void circle_area(){
area = pi*radius*radius;
return area;
}
int main(){
circle_area();
}