🔒 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
845
Guests online
3,961
Total visitors
4,806

Forum statistics

Threads
2,304,606
Posts
29,160,823
Members
1,196,868
Latest member
WitcherGayralt231
Back
Top