0

Can someone help me create a c++ program that accepts any integer input then display the next 10 odd numbers from that input?

7th Oct 2019, 11:16 PM
Leah Dagupan
6 ответов
8th Oct 2019, 12:19 AM
A͢J
A͢J - avatar
+ 1
We can help but you should try first.
7th Oct 2019, 11:18 PM
A͢J
A͢J - avatar
+ 1
Leah Dagupan Increase counter if condition is true.
8th Oct 2019, 12:13 AM
A͢J
A͢J - avatar
0
https://code.sololearn.com/ckAQY4byR0uE/?ref=app it only display the next 5 odd numbers.
7th Oct 2019, 11:55 PM
Leah Dagupan
0
Leah Dagupan It was happening because you are counting in each case so when condition is false value will not print but counter will increase. That's why it was printing only 5 values.
8th Oct 2019, 12:15 AM
A͢J
A͢J - avatar
0
Okay, I understand it now. Thanks.
8th Oct 2019, 12:30 AM
Leah Dagupan