Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Write program in c language to find the area and perimeter of the rectangle whose length is 7.5cm and breadth is 3.5cm



int main()
   double length =7.5, breadth=3.5, area, perimeter;
   area = length * breadth; 
   perimeter = 2*(length+breadth); 
   printf("\nArea of Rectangle = %f", area);
/*if you wish to round off the decimals to some point, add .n(n is number of decimal values you want)before %f in the printf statement, eg %.2f */
   printf("\nPerimeter of Rectangle = %f", perimeter); 
  return (0);
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts