Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /*
  2. kullanicinin girdigi 7 tane tam
  3. sayidan en buyugunu bulan program
  4. */
  5. #include<stdio.h>
  6.  
  7. int main(){
  8. int a1,a2,a3,a4,a5,a6,a7,cep;
  9. printf("Birbirinden farkli 7 tane degeri girin : ");
  10. scanf("%d%d%d%d%d%d%d",&a1,&a2,&a3,&a4,&a5,&a6,&a7);
  11. cep=a1;
  12. if(a2>cep){cep=a2;}
  13. if(a3>cep){cep=a3;}
  14. if(a4>cep){cep=a4;}
  15. if(a5>cep){cep=a5;}
  16. if(a6>cep){cep=a6;}
  17. if(a7>cep){cep=a7;}
  18. printf("en buyuk sayi: %d",cep);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement