Im not really getting what you are trying to do. What is the exercise question? Im still also very new to programming so I might be missing something but could use alittle more info.
You do some weird things. No need for the semi colons to add more endl's. Can just keep inserting them into the stream. Not sure why you're using doubles? And your for loop is strange. Why do you have d involved in the loop at all? It doesn't do anything but just add 1 to itself. All your program does is print startum through n, one at a time.
Excuse me for not being more specific.
Basically, i have to make geometric progression program where the user enters all the numbers, starting number, the length of progression, etc.
Oh, and one quick question.
Can I somehow make an error saying that data which i entered was wrong?
For example.
I enter characters instead of numbers.
Could anyone by any chance help me to write
if/while error for both cin >>.
Basically, if user enters non-number there should be a "Wrong number!"
And then it jumps to cout << " Continue (1) End (0)?" << endl; part.