Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // exercice 2 avec while
- #include<stdio.h>
- int main()
- {
- int N;
- printf("entrer un nombre entre 10 et 20\n");
- scanf("%d",&N);
- while(N>20){printf("PLUS PETIT !!\n");
- scanf("%d",&N);
- }while(N<10){printf("PLUS GRAND !!\n");
- scanf("%d",&N);
- }
- printf("le numero entree est %d\n",N);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement