Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  haripriya
Language: C/C++
Code:
#include <stdio.h>
int main(int argc, char *argv[]);
{
     int a,b,c;
     printf("enter a,b,c valuesn");
     scanf("%d%d%d",&a,&b,&c);
     if((a>b)&&(a>c)
{
     if(b>c)
     printf("%d%d%d",c,b,a);
     else
     printf("%d%d%d",b,c,a);
}
     if((b>a)&&(b>c)
{
     if(a>c)
     printf("%d%d%d",c,a,b);
     else
     printf("%d%d%d",a,c,b);
}
     if((c>a)&&c>b)
{
     if(a>b)
     printf("%d%d%d",b,a,c);
     else
     printf("%d%d%d",a,b,c);
}

     getchar();
     return 0;
}
          
          
          
          
          
Comments: