0
Can someone help me create a c++ program that accepts any integer input then display the next 10 odd numbers from that input?
6 ответов
0
Leah Dagupan Check this edited by me.
https://code.sololearn.com/cU54mT04S3oz/?ref=app
+ 1
We can help but you should try first.
+ 1
Leah Dagupan Increase counter if condition is true.
0
https://code.sololearn.com/ckAQY4byR0uE/?ref=app
it only display the next 5 odd numbers.
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.
0
Okay, I understand it now. Thanks.