Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
Take a character input fir this define char type variable then use if else statement and give message whatever you want to do or you can generate random number and pass generated numbers in if else statement little bit think about it . Instead of writing code directly on editor first make a design or flowchart .
22nd Nov 2021, 11:24 AM
A S Raghuvanshi
A S Raghuvanshi - avatar