Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int A,B,C;
- scanf("%d %d %d",&A,&B,&C);
- if(A<B && A<C && B<C)
- {
- printf("%d\n%d\n%d\n",A,B,C);
- }
- else if(A<B && A<C && C<B)
- {
- printf("%d\n%d\n%d\n",A,C,B);
- }
- else if(B<A && B<C && C<A)
- {
- printf("%d\n%d\n%d\n",B,C,A);
- }
- else if(C<B && C<A && B<A)
- {
- printf("%d\n%d\n%d\n",C,B,A);
- }
- else if(B<A && B<C && A<C)
- {
- printf("%d\n%d\n%d\n",B,A,C);
- }
- else
- printf("%d\n%d\n%d\n",C,A,B);
- printf("\n");
- printf("%d\n%d\n%d\n",A,B,C);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement