Keep asking
parent
3b094f76f8
commit
4f1cfb3e46
13
RandEsam.c
13
RandEsam.c
|
@ -1,4 +1,4 @@
|
|||
#define ver "0.6.3"
|
||||
#define ver "0.6.4"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -85,10 +85,15 @@ int main () {
|
|||
case 5: strcpy(r3, "affettive "); break;
|
||||
}
|
||||
strcat(esame, r3);
|
||||
normalizza(esame, gen);
|
||||
normalizza(esame, gen);
|
||||
printf ("%s\n", esame);
|
||||
printf ("\nVuoi sapere il nome di un altro esame? (s/n)");
|
||||
scanf ("%s", risposta);
|
||||
|
||||
strcpy(risposta, "x");
|
||||
while ( strcmp (risposta, "s") != 0 && strcmp (risposta, "n") != 0) {
|
||||
printf ("\nVuoi sapere il nome di un altro esame? (s/n) ");
|
||||
scanf ("%s", risposta);
|
||||
}
|
||||
|
||||
if (strcmp (risposta, "s") != 0) {
|
||||
printf ("Allora ciao");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue