Search This Blog

Sep 27, 2013

C programme to find the type of room

/*programme to find the type of room*/
#include<stdio.h>
#include<conio.h>
void main()
{
int l,b,a;
clrscr();
printf("Enter the length and breadth of room:");
scanf("%d%d",&l,&b);
a=l*b;
printf("Area of Room = %d",a);
if(a>2500)
printf(" \nGivern room is Auditorium");
  else if(a>=500)
  printf("\nGinen room is Hall");
    else if(a>150)
    printf("\nGiven room is Big Room");
  else
  printf("\nGiven Room is Small Room");
getch();
}

No comments:

Post a Comment