Main( )
{
int len, wid, r;
float por, aoc, coc;
float pi=3.1417;
printf(“/n Enter the value of length, width &radius “);
scanf(“%d %d %d “,&len, &wid, &r);
por=2*(len+wid);
aor=len+wid;
aoc=pi*r*r;
coc=2*pi*r;
prontf(“/n perimeter of rectangle is % f”,por);
Printf(“/n area of rectangle is %f”,aor);
Printf(“/n arear of circle is %f”,aoc);
Printf (“/n circumference of circle id %f”, coc);
}
Posted by: Wasim Javed
No comments:
Post a Comment