C
Carramba
hi!
if I have for exemple program
#include <stdio.h>
main() {
printf("Enter number:\n");
scanf("%d", Num);
printf("Number is %d!\n", Num);
fflush(stdin);
getchar();
}
how do I start program over so that after printf("Number is %d!\n", Num);
I can get line like "press c to continue q to quite" and if c is entered
so program starts from begining?
--
Thanx in advance!
;-)
______________________________________
I se the lightat the end, but every time I take a step it's get dim.
if I have for exemple program
#include <stdio.h>
main() {
printf("Enter number:\n");
scanf("%d", Num);
printf("Number is %d!\n", Num);
fflush(stdin);
getchar();
}
how do I start program over so that after printf("Number is %d!\n", Num);
I can get line like "press c to continue q to quite" and if c is entered
so program starts from begining?
--
Thanx in advance!
;-)
______________________________________
I se the lightat the end, but every time I take a step it's get dim.