Pages

Monday 21 May 2012

program to find out the Area


106./*Write a program to find out the Area*/

#include<stdio.h>
#include<conio.h>
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