+ 4
Write a java progrm with scanner and if else conditions.
input is taken by scanner and then getting result by conditional statement.
6 Antworten
+ 17
Rishabh Singh Try to solve it by yourself. It is not like a Question but more like a task.
Import Scanner from util library and try to do it by yourself.
+ 13
Rishabh Singh I see , U have completed full java course .
go to lesson of Scanner & input ...and see how to take Integer input for example https://www.sololearn.com/learn/Java/2220/
Then go to lesson of if() else () statements & make use of that integer input to make some codition https://www.sololearn.com/learn/Java/2143/?ref=app
//just what Meharban Singh said ☺
//don't forget import statement, ie "import java.util.Scanner;"
+ 7
Rishabh Singh You're welcome. Go ahead and keep coding !!!
+ 4
Arushi Singhania thank you ma'am i have done this😉
+ 3
Make this program buddy, use scanner to get input (age) and use if else to determine if you are eligible to vote.
+ 1
Gaurav Agrawal ,Meharban Singh thx to all .. ...