Question: The given program below displays numbers from 1 to 20. Modify this program so that it can display the following: 1 2 3 6 7

 The given program below displays numbers from 1 to 20. Modify

The given program below displays numbers from 1 to 20. Modify this program so that it can display the following: 1 2 3 6 7 9 11 13 14 17 18 19 Hint: Check the missing numbers in the sequence; do you find any pattern for them? You need to add code for the discovered pattern. If you simply write cout using namespace std; int main() { int num; " num = 1; while(num

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!