Saturday, 4 April 2015

c program to find the largest two numbers

 write a c program to find the largest two numbers

/*write a program to find the largest two numbers*/
/*author:sai        date:4-4-2015*/
#include <stdio.h>
int main()
{
   int a,b,c;
   printf("enter two values");
   scanf("%d%d",&a,&b);
   if(a>b)
 
   printf("a is big\n");
  
   else
  
    printf("b is big\n");



output:





No comments:

Post a Comment