Write a program to calculate the area of the circle, taking the value of the radius from the user.

Write a program to calculate the area of the circle, taking the value of the radius from the user.

Write a program to calculate the area of the circle, taking the value of the radius from the user.

Code:

#include<iostream>

#include<conio.h>

#include<math.h>

using namespace std;

void main()

{

       float rad,area;

       cout<<“Enter the value of Radius: \n\n”;

       cin>>rad;

       area= 2*3.142*rad;

       cout<<“\nArea of the circle is: “<<area;

       getch();

}

 

Output:

Write a program to calculate the area of the circle, taking the value of the radius from the user.

C++ projects for beginners with source code

M.A Siddiqui

Hi, I am M.A Siddiqui. I'm a Computer Science Student, In this website, I'm teaching you Multiple languages and provides Projects and other Subjects Notes.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *