🔒 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

Trending Topics

Online now

Members online
1,239
Guests online
1,466
Total visitors
2,705

Forum statistics

Threads
2,287,342
Posts
29,044,002
Members
1,216,478
Latest member
kirolololol
Back
Top