Computer Science, asked by avishp120, 1 year ago

Write a ‘C’ program to calculate area and perimeter of a rectangle.​

Answers

Answered by navjotn406
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 mythili420manjunath
12

Answer:

I don't know

Explanation:

Because i am beginner thankyou

Similar questions