Daily C++ Challenge – Day 841

Today is the 841st day of learning programming with the cool rain!

Hello, everyone! This is the GESP Level 1 Exam Questions for June 2025.

Day 841

Daily C++ Challenge - Day 841Daily C++ Challenge - Day 841

GESP Level 1 Exam Questions for June 2025

Question 15: The following C++ code can find the hundreds, tens, and units of a three-digit number that meet specific conditions. What should be filled in the blank ( )?

Daily C++ Challenge - Day 841

A. int b = (i / 10) / 10;

B. int b = (i / 10) % 10;

C. int b = (i % 10) / 10;

D. int b = (i % 10) % 10;

Answer: B

START OF SPRING

Solution: This question tests the method of separating digits in C++.

The method to obtain the middle digit is to first perform integer division with the target digit, and then take the modulus with 10.

Daily C++ Challenge - Day 841

20

25

9

Daily C++ Challenge - Day 841

SEPTEMBER

Day

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Sunday

1

10th

2

11th

3

Victory Day of the War of Resistance

4

13th

5

14th

6

Ghost Festival

7

White Dew

8

17th

9

18th

10

Teachers’ Day

11

20th

12

21st

13

22nd

14

23rd

15

24th

16

25th

17

26th

18

September 18 Incident

19

28th

20

29th

21

30th

22

August

23

Autumn Equinox

Harvest Festival

24

3rd

25

4th

26

5th

27

6th

28Class

7th

29

8th

30

Martyrs’ Memorial Day

@XIUMI

Cool Rain

Open Wisdom Station

Daily C++ Challenge - Day 841

Leave a Comment