Program to print area of Rectangle in c- language

Program to print area of Rectangle in c- language

#include<stdio.h>
int main()
{
 float area,h,w;
 printf("Enter height of rectangle\n");
 scanf("%f",&h);
 printf("Enter width of rectangle\n");
 scanf("%f",&w);
 area=h*w;
 printf("Area of rectangle=%f",area);
}

OUTPUT
Enter height of rectangle 
5
Enter width of rectangle
3
Area of rectangle=15.000000


Area of Rectangle is  further step toward going advance problem program of C-language.After reading this program you will be able to find area of rectangle.

If you like this program then you can share it and for any issues you can direct contact with me from Home Page.


For regular updates you can also follow my site.

Comments

Popular posts

Language Translator of C-language

Introduction of C-language.

Creative pattern of butterfly in C-language

Syntax of C-language

Program to see all ASCII value using for loop in C-language

Errors in C-language

Program to convert binary to decimal using while loop in C-language

Addition of two numbers in c language

Division of two numbers in C-language