Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int a, b, c, tmp;
- printf("podaj 3 liczby oddzielone spacja: ");
- scanf("%d %d %d", &a, &b, &c);
- if(c>b){
- tmp = b;
- b = c;
- c = tmp;
- }
- if(b>a){
- tmp = a;
- a = b;
- b = tmp;
- }
- if(c>b){
- tmp = b;
- b = c;
- c = tmp;
- }
- printf("kolejnosc: %d, %d, %d\n", c, b, a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement