Thursday, 15 March 2018

Greatest Among Two..

Simple and easy program for greatest among two...


#include<stdio.h>
#include<conio.h>
void main()
{
           int x,y;
           printf("Enter value for x and y :--> ");
           scanf("%d %d",&x,&y);
           if(x>y)
                      printf("x is greater..");
           else
                      printf("Y is greater..");
           getch();
}

No comments:

Post a Comment