Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main(){
- int sayi;
- printf("Sayi giriniz :");
- scanf("%d",&sayi);
- while(sayi != -1){
- if (sayi < 1 || sayi > 100){
- printf("Gecersiz Deger Girdiniz!\n");
- printf("Sayi giriniz :");
- scanf("%d",&sayi);
- }else{
- //islemler
- printf("Girilen Sayi = %d\n",sayi);
- printf("Sayi giriniz :");
- scanf("%d",&sayi);
- }
- }
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment