write a program to print area and perimeter of a rectangle
Answers
Answered by
1
Answer:
- #include<stdio.h>
- int main()
- { float a , b, c, d ,perimeter;
- a= c= 5;
- b=d= 4;
- perimeter = 2*(a+b);
- printf("\n\n Perimeter of Rectangle is : %f",perimeter);
- return (0);
Answered by
1
Answer:
CLS
INPUT "enter the length of rectangle";l
INPUT "enter the breadth of rectangle";b
p= 2*(l±b)
PRINT "the perimeter is";p
END
Similar questions