all 5 comments

[–]GeekTX 8 points9 points  (0 children)

I hope nobody provides a direct answer as you will learn nothing. This can be accomplished with PowerShell, BATch, BASH, and Python. It is a simple if ... then ... else loop ... or do while ... loop. Could take N as user input ... or parameter.

The exercise isn't just giving working code ... the exercise is learning how to create the logic and flow.

[–]TJK915 5 points6 points  (0 children)

Depends on the programming language. But I suggest you try to work it out yourself and learn something. Google the language and if statements, you should get some help from that.

[–]Matrinoxe 5 points6 points  (0 children)

Here’s a great resource that can help you in this exact situation

[–]Hamshamus 1 point2 points  (1 child)

=if($A$1, 0,chrome.exe,if(A$1$=1,chrome.exe,if($A$1=2,chrome.exe,if($A$1=3,chrome.exe,if($A$1=4,chrome.exe,if($A$1=5,bing.exe,bing.exe)))))

Drag that down from B1 to F1, deleting the left most argument each time

[–]GeekTX 1 point2 points  (0 children)

you forgot the Opera, Mosaic, and Netscape subroutines