Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

area of rectangle in C

This program is for calculating area of rectangle in C.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)
main()
{
int l,b,area;
printf("Enter the length of rectangle");
scanf("%d",&l);
printf("Enter the breadth of rectangle");
scanf("%d",&b);
area=l*b;
printf("\n\tArea of rectangle = %d",area);
getch();
}

0 comments:

Sign in / Join

Labels