Showing posts with label C lanuage. Show all posts
Showing posts with label C lanuage. Show all posts
#include<stdio.h>
#include<conio.h>
int main()
{
int l,b,r;
int ans;
printf("\n Enter the value of rectangle length: ");
scanf("%d", &l);
printf("\n Enter the value of rectangle Breadth: ");
scanf("%d", &b);
ans=l*b;
printf("\n Area of the rectangle is:=%d",ans);
ans=2*l+2*b;
printf("\n Perimeter of the rectangle:=%d",ans);
printf("\n Enter the radius of circle:");
scanf("%d", &r);
ans=3.14*r*r;
printf("\n Area of the circle:=%d",ans);
ans=2*3.14*r;
printf("\n circumference of the circle:=%d",ans);
}
Program In Dev C++