C Program to Find Perimeter and Area of Rectangle

In this program, the user is ask for length and breadth of rectangle, then the permitere and area is calculated. Finally the result will be displayed on console. Formulas: Area of Rectangle = l x b Perimeter of Rectangle = 2 * ( l + b )

Source Code
void main()
    int len, bread, area, peri;
    printf("Please enter Length and Breadth: ");
    scanf("%d%d", &len, &bread);
    area = len * bread;
    peri = 2 * (len + bread);
    printf("Area = %d and Perimeter = %d", area, peri);
Please enter Length and Breadth: 5 7
Area = 35 and Perimeter = 24

"Coding Hub - Learn to code" app now available on Google Play Store