Write a c++ program to find the area of a circle using the formula area=pi*r2
Answers
Answered by
7
Area Of a Circle
#include<iostream.h>
int main(){
int a,r;
printf("Enter a number to calculate the area ");
scanf("%d",r);
area=pi*r^2;
printf("Area is :", area);
}
#include<iostream.h>
int main(){
int a,r;
printf("Enter a number to calculate the area ");
scanf("%d",r);
area=pi*r^2;
printf("Area is :", area);
}
Similar questions
Physics,
7 months ago
Social Sciences,
7 months ago
Social Sciences,
7 months ago
Hindi,
1 year ago
Math,
1 year ago