Answer to Question #319257 in C++ for karabo

Question #319257

Determine the exact output that is produced when the following code is executed.


for x = 1 to 10 step 1


for y = 1 to x step 1


if y MOD 2 = 0 AND x MOD 2 <> 0 || y MOD 2 <> 0 AND x MOD 2 = 0 then


display "*"


else


display "#"


endif


next y


display " " ~newline


next x


1
Expert's answer
2022-03-29T16:49:07-0400

The programm will output:

#

#

#

#

#

#

#

#

#

#


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog