🔒 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
932
Guests online
749
Total visitors
1,681

Forum statistics

Threads
2,275,569
Posts
28,964,139
Members
1,231,867
Latest member
LabaMC
Back
Top