What's new

Closed Mailbox, open and close, array c++

Status
Not open for further replies.

alchemist_19

Addict
Joined
Oct 8, 2018
Posts
50
Reaction
3
Points
77
a.PNG


Ano yung code para dito?
Nag start siya sa 2, and then 3...
Kapag binalikan nya yung box na 0(close) ay gagawin nyang 1(open). Vice versa.
Pa request po hanggang Box 150.
Sa 150 na yun po DAW ay may 12 na closed at 138 open boxes.
Gamit lang ang array, loopings, conditional statement.

Ang output ya po ay yung huli(150) at kung ilan ang 0(close) at 1(open)
Salamat mga master. Beginner here:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.

12 are close.
138 are open.

Ps. Diko alam saan banda yung 1(open)
 

Attachments

Status
Not open for further replies.

Similar threads

Back
Top