Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mport java.util.Scanner
- fun main() {
- val lector = Scanner(System.`in`)
- var cajasDeSeguridad = MutableList(4) {MutableList(4) { 0 }}
- var fila =lector.nextInt()
- var columna =lector.nextInt()
- while (fila != -1 && columna !=-1 ) {
- cajasDeSeguridad[fila][columna]++
- fila = lector.nextInt()
- if (fila == -1) break //Evita escribir dos veces -1
- columna = lector.nextInt()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement