Answered step by step
Verified Expert Solution
Link Copied!

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++.!

image text in transcribed

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) cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions

Question

Identify proposed explanations for why we dream.

Answered: 1 week ago