Daily C++ Challenge – Day 898

Today is the 898th day of learning programming with the chilly rain!

Hello, everyone! This is the question from GESP202509 Level 2.

Day 898

Daily C++ Challenge - Day 898Daily C++ Challenge - Day 898

GESP202509 Level 2

Multiple Choice Question

Question 10

What is the output of the following C++ code after execution ( )?

Daily C++ Challenge - Day 898

A. 1#2#4#5#6#

B. 1#2#4#5#6

C. 1#2#3#4#5#6#

D. 1#2#3#4#5#6

Answer: A

START OF SPRING

Solution:This question tests the while loop and continue.

When num=3, the continue statement prevents printing the value of num, while in other cases, the value of num can be printed. Therefore, the answer is A.

Daily C++ Challenge - Day 898

20

25

11

Daily C++ Challenge - Day 898

NOVEMBER

Day

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Sunday

1

12

2

13

3

14

4

15

5

16

6

17

7

Beginning of Winter

8

Chinese Journalist Day

9

Fire Safety Day

10

21

11

22

12

23

13

24

14

25

15

26

16

27

17

28

18

29

19

30

20

October

21

2nd

22

Light Snow

23

4th

24

5th

25

6th

26

7th

27

Thanksgiving

28

9th

29

10th

30

11

Chilly Rain

Chilly Rain

Open Wisdom Station

Daily C++ Challenge - Day 898

Leave a Comment