+ 2

Help me to solve this

how can i print a new statement after the below output if the user input 'Y'? Do you want to add some glitters?[Y-Yes,N-No]: Y

17th Nov 2021, 5:42 PM
StarryGirl
3 ответов
+ 6
StarryGirl , it would be very helpful, to see your code. please put it in playground and link it here. thanks!
17th Nov 2021, 6:09 PM
Lothar
Lothar - avatar
+ 2
You can use condition statement like if statement If(input=='Y') //Do something else if(input=='N') //Do something else Print invalid input please enter again
17th Nov 2021, 7:42 PM
Shafiq Almatari
Shafiq Almatari - avatar
+ 1
Question Not clear... Better to explain with code sample...
17th Nov 2021, 6:08 PM
Jayakrishna 🇮🇳