Monday, August 30, 2010

C Program to get the largest of three numbers

void main()
     int a,b,c;
     printf("\n\n Enter the values of three numbers \n\n");
     printf("\n The values of three numbers are \n");
     printf(" a = %d\n",a);
     printf(" b = %d\n",b);
     printf(" c = %d\n",c);
          printf("\ta = %d is larger ",a);
          printf("\tc = %d is larger ",c);
            printf("\tc = %d is larger",c);
            printf("\tb = %d is larger",b);

No comments:

Post a Comment