Google analytics

Sunday, August 28, 2011

find out the greatest between two numbers?

/* Program to find the greater between two number */



#include<stdio.h>
#include
<conio.h>
void
main()
{
  int
a,b,g;
   clrscr
();
   printf
(“\n \t \t Finding out the Greatest Value”);
   printf(” \n please enter the any one number”);
   scanf(“%d”, &a);
   printf(” please enter the any number again”);
   scanf(“%d”, &b);
 if
(a>b)
   printf(“the greatest number is :%d”, a);
 
else
   printf(“the greatest number is:%d”,b)
 getch();
}

No comments:

Post a Comment