Computer Science, asked by arpitparmar086, 23 hours ago


you are given 5 doors and 6 windows which have serial numbers on them
starting from 1. The time taken for opening or dosing a door is 40ser and
the time taken for opening and closing a window is 50sec. You havi
; take
the input from the user to open or dose followed by the serial number of
that particular door or window to operate on it. write an algorithm to display
the total time take for the operations

Answers

Answered by pranjalbisht09
0

Answer:

Input:

N = 2

Output:

1

Explanation:

Initially all doors are closed.

After 1st go, all doors will be opened.

After 2nd go second door will be closed.

So, Only 1st door will remain

Similar questions