how Conversion area = π R 2 (area of a circle) 2 c++
how Conversion 2 c++
Collapse
X
-
Maybe you are asking how to convert this statement into code form. For this, the formula 'π r²' can be written as area= 3.14*r*r.
Complete program for this:
Code:#include <iostream> using namespace std; int main() { float r, area; cout<<"Enter radius of circle: "; cin>>r; area= 3.14*r*r; cout<<"Area of circle is:"<<area; return 0; }
Comment