0% found this document useful (0 votes)
42 views1 page

Question 5

This C++ program asks the user to input a radius, then calculates the area of a circle using that radius. It multiplies the input radius by itself, then multiplies the result by 3.142 to get the area, and displays the calculated area to the user.

Uploaded by

Babar Rasheed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

Question 5

This C++ program asks the user to input a radius, then calculates the area of a circle using that radius. It multiplies the input radius by itself, then multiplies the result by 3.142 to get the area, and displays the calculated area to the user.

Uploaded by

Babar Rasheed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

PROGRAME TO FIND AREA

#include<iostream>
using namespace std;
int main()
{
float r,Area=0;
cout<<"Enter Radius"<<endl<<"Radius:";
cin>>r;
Area=3.142*r*r;
cout<<"Area is="<<Area<<endl;
return 0;
}

You might also like