C Program To Calculate Area Of Rectangle

C Program To Calculate Area Of Rectangle

#include<stdio.h>

int main()
 {

   int length, breadth, area;

   printf("Enter Length of Rectangle : \n");
   scanf("%d", &length); //input from user

   printf("Enter Breadth of Rectangle : \n");
   scanf("%d", &breadth); //input from user

   area = length * breadth;
   printf("Area of Rectangle : %d\n", area);  //Print Output On screen

}
Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics