Project Stem
Ask the user to input an integer. Print out the next three consecutive numbers.
Sample Run
Enter an integer: 4
5
6
7
please help me
Answers
Answered by
2
Answer:
cout<<"Next three consecutive integers are as following:"<<endl; for(int i=1;i<=3;i++) //for loop to print three integers. cout<<++z<<endl;//printing the integers.
Similar questions
Social Sciences,
24 days ago
Math,
24 days ago
Biology,
1 month ago
History,
9 months ago
Science,
9 months ago