+ 2

Input. Is india. . Output is 1nd2a

how to make it https://code.sololearn.com/Wnc1H3jaH0ua/?ref=app

18th Dec 2017, 12:36 PM
Navin Tamilan Da
Navin Tamilan Da - avatar
2 Answers
+ 15
pseudocode: string in input in if in == "india": print "1nd2a"
18th Dec 2017, 12:40 PM
qwerty
qwerty - avatar
+ 2
use function please :) ↓↓↓ //You can add your number var rand = ["a", "b", "c", " d"]; var cont = Math.floor(Math.random() * rand.length); alert(rand[cont]);
18th Dec 2017, 12:39 PM
James16
James16 - avatar