google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a program to find the area and circumference of a circle - 2nd puc computer science

Write a program to find the area and circumference of a circle

Write a program to find the area and circumference of a circle

#include<iostream.h> 
#include<conio.h> 
void main( )
{
float radius, area, circumference;
clrscr( );
cout<<"Enter the radius:"; cin>>radius;
area = 3.142 * radius * radius;
circumference = 2 * 3.142 * radius;
cout<<"Area of circle = "<<area<<endl;
cout<<"Circumference of circle = "<<circumference<<endl;
getch();
}

Write a program to find the area and circumference of a circle Write a program to find the area and circumference of a circle Reviewed by Vision Academy on February 20, 2022 Rating: 5

No comments:

CheckOut

Powered by Blogger.