Write a program in 'C' Language to calculate the area and perimeter of thhe rectangle?
Q. The Length and breadth of a rectangle and radius of a circle are input through thhe keyword. Write a program to calculate the area and perimeter of thhe rectangle, and the area and circumference of the circle?
Solve:
#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++
How to make a tiny tiny version of the babyliss nano titanium flat iron
ReplyDeleteIt's remmington titanium important to note that we'll titanium engagement rings for her also cover the basics, which are pretty hard to come by, in the form of the titanium wedding bands for men ribbons. titanium sheet metal The ribbons titanium nipple rings are
Wynn Slots for Android and iOS - Wooricasinos
ReplyDeleteA free app for slot machines from WRI Holdings poormansguidetocasinogambling Limited that lets you play the popular games, jancasino such as 사설 토토 사이트 free video slots, ventureberg.com/ table wooricasinos.info games and live casino