1) Write a program to calculate area of circle using constants

Anonymous School

            (Minds of Hacker)

--------------------------------



Write a program to calculate area of circle using constants.


C++ Practical


#include<iostream>
using namespace std;
const float pi=3.14159265;
int main()
{
    float radius;
    cout<<"Enter the radius of circle\n ";
    cin>>radius;
    radius=pi*(radius*radius);
    cout<<"\n\nArea of circle = "<<radius;

}


Output:


Enter the radius of circle 60 Area of circle = 11309.7


 *******************Don't Make Learning Hard*****************



Follow us on :-

1) YouTube Channel :- Click Here

2) Blog                     :- Click Here


NextGen Digital... Welcome to WhatsApp chat
Howdy! How can we help you today?
Type here...