Skip to content
Advertisement

How to read input in Google Kickstart (PHP)

How can I read following stdin for Google Kickstart oder Jam code etc.:

JavaScript

So the 4 in the first line has to be in a var (e.g. $a); Then in every line after that: the first param goes into an Array of $b[] e.g. And the same with the second param. In $c[] e.g. So the result should be:

lang: PHP

JavaScript

It doesn’t matter if it’s an integer or a string.

Thank you

Advertisement

Answer

Do you think so, like this?

JavaScript

output

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement