Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have Questions for the for loop in C++.! So the above 2 question I have the answers: Hello10 Hello8 Hello6 Hello4 Hello2 Hello0 ---------------but
I have Questions for the for loop in C++.!
So the above 2 question I have the answers:
Hello10 Hello8 Hello6 Hello4 Hello2 Hello0
---------------but in the standard answer, there's no Hello0.
for the 2nd one I got:
2 1.5 1.0 0.5 0
--------------but in the standard answer, again , there's no 0.
I want to know why!!!~~
Thank you so much if you can help me out~~
(PS: the questions are from AbsoluteC++ textbook, the language should be C++)
28. What is the output of the following (when embedded in a complete program)? for (int n = 10; n > 0; n = n - 2) cout 0; sample = sample - 0.5) coutStep 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