🔒 Closed Mailbox, open and close, array c++

Status
Not open for further replies.

alchemist_19

Grasshopper
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)
 
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 1K
    Views
  • 3
    Participants
Last reply from:
aa1012

Online now

Members online
999
Guests online
4,199
Total visitors
5,198

Forum statistics

Threads
2,349,856
Posts
29,364,801
Members
1,089,372
Latest member
overloadedspideyy
Back
Top