Tuesday, September 14, 2010

how to write a program of Relational Opretore by give the value of user in C-programing ?

its use  to large in any two number hwz one number is larges by give the user


#include
#include
void main()

{
int a,b,c;
clrscr();
printf("\n\t Enter Any Number \t\t:\t");
scanf("%d",&a);
printf ("\n\t Enter any number \t\t:\t");
scanf ("%d",&b);
c= a>b?a:b;
printf ("\n\tThe largest of two numbers is\t:\t%d",larger);
getch();

}

No comments: