Write a ‘C’ program to calculate area and perimeter of a rectangle.
Answers
Answered by
33
Answer:
#include<stdio.h>
int main() {
int length, breadth, area,perimeter;
printf("\nEnter the Length of Rectangle : ");
scanf("%d", &length);
printf("\nEnter the Breadth of Rectangle : ");
scanf("%d", &breadth);
area = length * breadth;
perimeter=2*(length+breadth);
printf("\nArea of Rectangle : %d", area);
printf("\nPerimeter of Rectangle : %d", perimeter);
return (0);
}
Answered by
12
Answer:
I don't know
Explanation:
Because i am beginner thankyou
Similar questions