Write a C program to find greater of two number.

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

No comments:

Post a Comment