Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started