c++

Dear all;

I am to write a c++ program that would accept a number from the keyboard and display the increment of the number with a step of 3 up to 2019 as output
Start with http://www.cplusplus.com/doc/tutorial/
Sections: "Input/Output" and "Control Structures"
So what have you tried so far?

Like have you looked at your reference material about cin and for loops ?
Most stupid title award?
Last edited on
I dunno, there's one floating out there this week and it asks 'can anyone write a program'.


I am guessing you just got started. Have you see a for loop yet? This problem is simple enough that showing you anything is going to show you all of it, so enjoy one freebie, but next time show some work. Use this along with what you were taught in class/book to make a program of it..

cin >> input;
for(;input <= 2019; input+=3)
… cout etc


Topic archived. No new replies allowed.