0

at c language , How do i enter more than one value for the same variable so that it depends on the last value

please answer me 💔

15th Sep 2019, 9:10 PM
Hesham Aamer
Hesham Aamer - avatar
8 ответов
+ 2
do { scanf("%d", &num); } while(num == 0);
15th Sep 2019, 9:40 PM
Miquel Andreu Fuster Sancho
Miquel Andreu Fuster Sancho - avatar
+ 2
thanx all
15th Sep 2019, 9:43 PM
Hesham Aamer
Hesham Aamer - avatar
+ 1
thanx bro
15th Sep 2019, 9:52 PM
Hesham Aamer
Hesham Aamer - avatar
0
if i have variable and want the user to enter a certain value but if enter 0 for example i will ask him to enter true number and show (scanf) agin for the same variable
15th Sep 2019, 9:30 PM
Hesham Aamer
Hesham Aamer - avatar
0
look bro , i have howework fo make pyramid prompts the user for the pyramid’s height, storing their input in a variable, re-prompting the user again and again as needed if their input is not a positive integer between 1 and 8, inclusive.
15th Sep 2019, 9:41 PM
Hesham Aamer
Hesham Aamer - avatar