Answer to Question #1192 in C++ for aditya rangarajan

Question #1192
Write a program to calculate area of circle and print the same.
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS