Serial number for game

Report a typo

Jim has lots of PC and Xbox games, but all of them have been damaged by a virus and now understand only command prompt commands. To run a game from the command line, Jim needs to use the game's serial number. He has a list of games with their respective serial numbers in the following format:

gameName@serialNumberForXbox@SerialNumberForPC

Write a function findSerialNumberForGame, which takes the list of games listGames and serial numbers as parameters, reads the name of a game from the console, and prints its PC and Xbox serial numbers.

Sample Input 1:

Witcher

Sample Output 1:

Code for Xbox - 2390854749586934, for PC - 8345053744348576
Write a program in Kotlin
fun findSerialNumberForGame(listGames: List<String>) {

}
___

Create a free account to access the full topic