+ 4

Write a java progrm with scanner and if else conditions.

input is taken by scanner and then getting result by conditional statement.

13th Nov 2018, 4:49 AM
Rishabh Singh
Rishabh Singh - avatar
6 ответов
+ 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.
13th Nov 2018, 5:02 AM
Arushi Singhania
Arushi Singhania - avatar
+ 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;"
13th Nov 2018, 6:14 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 7
Rishabh Singh You're welcome. Go ahead and keep coding !!!
14th Nov 2018, 11:52 AM
Arushi Singhania
Arushi Singhania - avatar
+ 4
Arushi Singhania thank you ma'am i have done this😉
14th Nov 2018, 9:24 AM
Rishabh Singh
Rishabh Singh - avatar
+ 3
Make this program buddy, use scanner to get input (age) and use if else to determine if you are eligible to vote.
13th Nov 2018, 5:38 AM
Meharban Singh
Meharban Singh - avatar
+ 1
Gaurav Agrawal ,Meharban Singh thx to all .. ...
14th Nov 2018, 9:25 AM
Rishabh Singh
Rishabh Singh - avatar