Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include "stdio.h"
- #include "math.h"
- int main() {
- int num;
- int exit = 0;
- while (exit != 1) {
- printf("Inseriscimi un numero compreso tra 15 e 25 \n");
- scanf("%d", &num);
- while ((num < 15) || (num > 25)) {
- printf("Attenzione! Inseriscimi un numero compreso tra 15 e 25 \n");
- scanf("%d", &num);
- }
- while (num > 0) {
- printf("%d \n", num);
- num--;
- }
- printf("se desidera inserire un' altro numero premere invio, se desidera uscire premere 1");
- scanf("%d", &exit);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement