MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/rmwdib/whats_wrong/hpotfk4/?context=3
r/CodingHelp • u/CAGRI-TR • Dec 23 '21
90 comments sorted by
View all comments
75
Change following lines
Line #12 - (1 < x && x < 13)
Line #16 - (13 <= x && x < 20)
Keep only `else` on line #20
Edit: also add statement `return 0;` before line #24
-30 u/CAGRI-TR Dec 23 '21 Nope every number is still child 7 u/Zymoox Dec 23 '21 Print the value of x, what do you get? -16 u/CAGRI-TR Dec 23 '21 Theres a something wrong because it gives always child 15 u/Zymoox Dec 23 '21 I know, I've read your other comments. When you print the value of x after you input it, what do you get?Note: to print x, do printf("%d",x);
-30
Nope every number is still child
7 u/Zymoox Dec 23 '21 Print the value of x, what do you get? -16 u/CAGRI-TR Dec 23 '21 Theres a something wrong because it gives always child 15 u/Zymoox Dec 23 '21 I know, I've read your other comments. When you print the value of x after you input it, what do you get?Note: to print x, do printf("%d",x);
7
Print the value of x, what do you get?
-16 u/CAGRI-TR Dec 23 '21 Theres a something wrong because it gives always child 15 u/Zymoox Dec 23 '21 I know, I've read your other comments. When you print the value of x after you input it, what do you get?Note: to print x, do printf("%d",x);
-16
Theres a something wrong because it gives always child
15 u/Zymoox Dec 23 '21 I know, I've read your other comments. When you print the value of x after you input it, what do you get?Note: to print x, do printf("%d",x);
15
I know, I've read your other comments. When you print the value of x after you input it, what do you get?
Note: to print x, do printf("%d",x);
printf("%d",x);
75
u/terroroferror Dec 23 '21 edited Dec 23 '21
Change following lines
Line #12 - (1 < x && x < 13)
Line #16 - (13 <= x && x < 20)
Keep only `else` on line #20
Edit: also add statement `return 0;` before line #24