Answer to Question #1192 in C++ for aditya rangarajan
Write a program to calculate area of circle and print the same.
1
2010-12-14T06:06:06-0500
#include <iostream>
using namespace std;
int main ()
{
float r;
cout << "Please enter the radius: ";
cin >> r;
cout << "The area of the circle is " << 3.14*r*r ".\n";
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment