Sunday, October 3, 2010

write a program for AND Operator using C programing ?

#include
#include
void main()
{
int a;
clrscr();
printf("\n\t Enter the any number less than 10\t:\t");
scanf("%d",&a);
if(a<=10)
printf("\n\t\t You are a good student");
if(a>=10)
printf("\n\t\t You are a very bad student");


printf("\n\n\t Enter the any number less than 10\t:\t");
scanf("%d",&a);
if(a<=10)
printf("\n\t\t You are a good student");
if(a>=10)
printf("\n\t\t You are a very bad student");
getch();
}

No comments: