Skip to content

Karthi-Govindharaju/rectangle-area

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Area of a Rectangle

AIM:

To write a program to find area of a rectangle.

Equipments Required:

  1. Personal Computer
  2. C compiler

Algorithm

Step 1:

Get the input from the user

Step 2:

Get the ouput

Step 3:

Print the output

CODE

/*
Program to the area of a rectangle.
Developed by: G. Karthi
RegisterNumber: TSAI005
*/
#include<stdio.h>
int main()
{
    float length, breadth, area;
    
    scanf("%f%f", &length, &breadth);
    area=length*breadth;
    
    printf("Area=%0.2f",area);
    
    return 0;
}

Output:

Area of Rectangle

Result:

Thus the program for caluculating the area of the rectangle is written and output is verified.

About

Area of a Rectangle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors