Area & Parameter of Rectangle , Area & Circumference of circle

/* write a program to find the Area,parameter of rectangle,Area Circumference of circle */

#include<stdio.h>
#include<conio.h>
void main()
{
float l, b, r, ar, pr, ac, cc;
clrscr();
printf("\n Enter the Lenght & Breath of Rectangle");
scanf("%f%f",&l,&b);
printf("\n Enter radius of Circle");
scanf("%f",&r);
ar = l * b ;
pr = 2 * (l + b ) ;
ac = 3.14 * r * r ;
cc = 2 * 3.14 * r ;
printf("\n Area of Rectangle = %f",ar);
printf("\n Parameter of Rectangle = %f",pr);
printf("\n Area of Circle = %f ",ac);
printf("\n Circumference of Circle = %f ",cc);
getch();
}

Who's online

We have 23 guests and no members online

About Us

Harsimran Singh

Hello

This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(about.me)

Harsimran Singh(G+)