Thursday, 13 October 2011

IF TOPC

#include<stido.h>
#include<conio.h> 
int main(){
       int x,y;
       printf("Enter value for x :");
       scanf("%d",&x);
       printf("Enter value for y :");
       scanf("%d",&y);
       if ( x > y ){
               printf("X is large number - %d\n",x);
       }
       else{
               printf("Y is large number - %d\n",y);
       }
       return 0;
getch(); 
 
}

0 comments:

Post a Comment