#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
Write a c program to compute the surface area and volume of a cube
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
By using that one thing.
program to find maximum of two numbers using pointers
i am sam