Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int length, width, area;
- printf("==AREA OF A RECTANGLE CALCULATOR==\n");
- printf("Enter the length of the rectangle: ");
- scanf("%d", &length);
- printf("Enter the width of the rectangle: ");
- scanf("%d", &width);
- area = length * width;
- printf("The area of a triangle with length %d and width %d is: %d", length, width, area);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement