C program to calculate the area of rectangle - With Output

#include<stdio.h>
#include<conio.h>

void main()
{
     int len,bre,area;
printf(“Enter the Length and Breadth :  ”);
scanf(“%d%d”,&len,&bre);
area=len*bre;
printf(“\nArea = %d”,area);

getch();

}

OUTPUT :

Enter the Length and Breadth :  4 3

Area = 12
Share on Google Plus

About Akash Manhas

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment