Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to input length and breadth and calculate area of rectangle.
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- float length, breadth;
- clrscr();
- printf("Enter length and breadth of the rectangle: ");
- scanf("%f%f", &length, &breadth);
- printf("The area of rectangle of length %f and breadth %f is: %f", length, breadth, length * breadth);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement