Computer Science, asked by gunjant183, 2 months ago

write a program to print area and perimeter of a rectangle​

Answers

Answered by harshithakakumani
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 pratik12501
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