How to write program for giving input " hai" and I want auto reply "hello"...and it should be a continuous process...java | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 2

How to write program for giving input " hai" and I want auto reply "hello"...and it should be a continuous process...java

Please write this program using java

6th Feb 2021, 9:41 AM
Durga
Durga - avatar
1 Antwort
+ 1
Ask for input in a while loop . If input is "hai" Then only output hello otherwise break loop
6th Feb 2021, 10:14 AM
Abhay
Abhay - avatar