#include<stdio.h>
void main()
{
int r;
int pi=3.14;
float cir,area;
printf("/n enter the radius of the circle");
scanf("%d",&r);
cir=2*pi*r;
area=pi*r*r;
printf("the circumference of the circle is%d",cir);
printf('the area of the circle is %d",area);
}
check related links
Learn c programming and geometry. It will be easy when you know both.
Write a program that calculates the area of a triangle in QBASIC
write a vb program to find the magic square
For first find an example program.
Write a program to find the grade obtained by the students of a class
Yes, do write. That's what you always have to do when you have got a homework-program.
write an assembly language program to find sum of N numbers
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
Write a c program to compute the surface area and volume of a cube
PROGRAM TO FIND AREA & PERIMETER OF CIRCLE IN C++#include #include void main(){clrscr();double rad, area, perimeter;coutrad;area=3.14*rad*rad;perimeter=2*3.14*rad;cout
Write the factors of the first number in the left circle. Write the factors of the second number in the right circle. Write the numbers that are the same in each individual circle in the space where they intersect.
By using that one thing.