Created
June 10, 2019 19:22
-
-
Save denizfurkan/009e9b231cacda7c4d7098f0578ec183 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int a,b,c; | |
printf("A Sayisini Gir"); | |
scanf("%d", &a); | |
printf("B Sayisini Gir"); | |
scanf("%d", &b); | |
printf("C Sayisini Gir"); | |
scanf("%d", &c); | |
if(a<b && a<c){ | |
if(b<c){ | |
printf("Siralamaniz: %d %d %d", a,b,c); | |
} | |
else{ | |
printf("Siralamaniz: %d %d %d", a,c,b); | |
} | |
} | |
if(b<a && b<c){ | |
if(a<c){ | |
printf("Siralamaniz: %d %d %d", b,a,c); | |
} | |
else{ | |
printf("Siralamaniz: %d %d %d", b,c,a); | |
} | |
} | |
if(c<a && c<b){ | |
if(a<b){ | |
printf("Siralamaniz: %d %d %d", c,a,b); | |
} | |
else{ | |
printf("Siralamaniz: %d %d %d", c,b,a); | |
} | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment