डाउनलोड पी.डी.एफ. ई-बुक्स
C - Area Of Rectangle

विवरण :

Formula

Area = width(w) * length(l)

Enter the Length of Rectangle :
Enter the Breadth of Rectangle :
Area of Rectangle :

सोर्स कोड :

#include <stdio.h>

int main() {
int len, bre, area;

printf("Enter the Length of Rectangle : ");
scanf("%d", &len);
printf("\nEnter the Breadth of Rectangle : ");
scanf("%d", &bre);

area = len * bre;
printf("\nArea of Rectangle : %d", area);

return 0;
}

आउटपुट :

Enter the Length of Rectangle : 4
Enter the Breadth of Rectangle : 6
Area of Rectangle : 24