Search This Blog

Translate

C program to find largest of two number


 C program to find largest of two number

 

#include
#include
void main()
{
 int a,b;
 clrscr();
 printf("\n Enter the two numbers:");
 scanf("%d %d",&a,&b);
 if(a>b)
  printf("\n large is:%d",a);
 else
  printf("\n large is:%d",b);
 getch();
 }

C Program example List

Google+ Badge