Advertisement
sahajjain01

03.Input length and breadth and calculate area of rectangle.

Aug 16th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. //Program to input length and breadth and calculate area of rectangle.
  2. #include<stdio.h>
  3. #include<conio.h>
  4.  
  5. void main()
  6. {
  7.     float length, breadth;
  8.  
  9.     clrscr();
  10.  
  11.     printf("Enter length and breadth of the rectangle: ");
  12.     scanf("%f%f", &length, &breadth);
  13.     printf("The area of rectangle of length %f and breadth %f is: %f", length, breadth, length * breadth);
  14.  
  15.     getch();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement