Question: Can someone explain to me how to output the sequence 100, 81, 64, 49, 36, 25, 16, 9, 4, 1 in C++? I am only

Can someone explain to me how to output the sequence "100, 81, 64, 49, 36, 25, 16, 9, 4, 1" in C++?

I am only able to use 1 variable and cannot use multiplication(*) or addition(+).

I understand that it is subtracting by 19,17,15,13,etc... but i cannot figure out how to acquire that sequence with just one variable, when that variable would likely be assigned to 100.

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!