+ 5

CODING

I want to create a code which on typing a number, say 1,outputs a number(the output) but on typing 1 again the number should change...Suggest and guide me guys

25th Jun 2018, 1:41 PM
Coding Niffler
Coding Niffler - avatar
6 Respostas
+ 2
I don't understand what exactly do you want. I understood it like user inputs some numbers and your program prins them back as long as the inputted number hasn't been inputted before and in case it was, you want to print a random value. Did I understood it correctly?
26th Jun 2018, 2:50 PM
Jan Štěch
Jan Štěch - avatar
+ 8
what language
25th Jun 2018, 2:49 PM
Agent
Agent - avatar
+ 4
you want random value when input is 1 several times
25th Jun 2018, 4:21 PM
कामेश
कामेश - avatar
+ 3
oh sry bro it's java
25th Jun 2018, 3:26 PM
Coding Niffler
Coding Niffler - avatar
26th Jun 2018, 5:15 PM
Jan Štěch
Jan Štěch - avatar
0
i guess c++
26th Jun 2018, 3:35 PM
Slow Ninja
Slow Ninja - avatar