Sunday, 11 December 2011

Write a program to find out the Area in c

#include
#include
void main()
{
int l,b,area;
clrscr();
printf("Enter Length:");
l=read();
printf("Enter breadth:");
b=read();
area=l*b;
printf("\nThe Area is:%d",area);
getch();
}
read(int a)
{
scanf("%d",&a);
return a;
}

No comments:

Post a Comment