c program to find greatest no.


Program to find the greatest no. from two no.  :-

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter any two numbers = \n");
scanf("%d%d",&a,&b);
if(a>b)
{printf("greater no. is = %d",a);}
else if(b>a)
{printf("greater no. is = %d",b);}
getch();
}

Comments