Created
March 28, 2013 21:38
-
-
Save gokhanyavas/5267039 to your computer and use it in GitHub Desktop.
Dışardan girilen 3 sayının en büyüğünü bulan c programı.
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
//dışardan girilen 3 sayının en büyüğünü bulan program | |
#include <stdio.h> | |
#include <conio.h> | |
int main() | |
{ | |
int x,y,z,enb; | |
printf(" 3 tane sayi giriniz : \n"); | |
scanf("%d %d %d",&x,&y,&z); | |
if(x>y){ | |
if(x>z) | |
{ | |
enb = x; | |
} | |
else | |
{ | |
enb = z; | |
} | |
} | |
else | |
{ | |
if(y>z) | |
{ | |
enb = y; | |
} | |
else | |
{ | |
enb = z; | |
} | |
} | |
printf ("Girilen en buyuk sayi %d", enb); | |
getch(); | |
// ekranın kapanmasını engelliyor.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment