Program to find the area of rectangle

0
31

 

#include<stdio.h>
#include<conio.h>
void main()
{
  float a,b,area;     /* a, b for 2 sides and area for result */
  clrscr();
  printf("enter two sides of rectangle \n");
  scanf("%f%f",&a,&b);    /* inputting the values from keyboard */
  area=a+b;  /* finding the area by multiplying two sides*/
  printf("\n area of rectangle with sides %.2f & %.2f=%.2f", a,b,area);
                 /* gives the result with two decimal places */
  getch();
}
    Output:
    Enter two sides of rectangle
    20
    30
    area of rectangle with sides 20.00 & 30.00 = 600.00

Program to find the area of rectangle program to find the area of rectangle in c c program to find the area of rectangle program to calculate the area of a rectangle a program to find the area of a rectangle write a basic program to calculate the area of rectangle write a basic program to find the area of a rectangle write a c program to find the area of rectangle c program to calculate the area of rectangle c program to find out area of rectangle:

        

LEAVE A REPLY

Please enter your comment!
Please enter your name here