This file contains hidden or 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
| #include <stdio.h> | |
| int acquisisciNumeroCompresoTraValori(int min, int max) { | |
| int inserimento; | |
| printf("Inserisci un numero compreso tra %d e %d: ", min, max); | |
| scanf("%d", &inserimento); | |
| while ((inserimento < min) || (inserimento > max)) { | |
| printf("Inserimento invalido! Riprova: "); | |
| scanf("%d", &inserimento); | |
| } |
NewerOlder