I don't know if this will make sense, but here goes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don't know if this will make sense, but here goes.

Firstly I'm only starting to learn and I'm just messing around and not sure if this will work. I'm using Java and trying to create something where I can enter someone's age also use the if else condition. Is this possible, and How?

19th Jan 2018, 12:37 AM
Ntokozo Mduna
Ntokozo Mduna - avatar
8 Answers
+ 6
fixed; comments on changes. review and compare to yours. https://code.sololearn.com/c226Bc534WoA/?ref=app You were very close. Keep it up :)
19th Jan 2018, 1:07 AM
jay
jay - avatar
+ 5
;) excellent. I will post it here for everyone https://code.sololearn.com/cjavvYFGWI68/?ref=app
19th Jan 2018, 1:01 AM
jay
jay - avatar
+ 4
are you using Java or JavaScript?
19th Jan 2018, 12:56 AM
jay
jay - avatar
+ 4
Well sure it is possible! Do you know how to get user input?
19th Jan 2018, 12:59 AM
jay
jay - avatar
+ 1
I'm using Java
19th Jan 2018, 12:57 AM
Ntokozo Mduna
Ntokozo Mduna - avatar
+ 1
Thanks
19th Jan 2018, 1:02 AM
Ntokozo Mduna
Ntokozo Mduna - avatar
+ 1
thanks a lot.
19th Jan 2018, 1:23 AM
Ntokozo Mduna
Ntokozo Mduna - avatar
0
yes I do. if you don't mind checking my profile I posted what I attempted there😅
19th Jan 2018, 1:00 AM
Ntokozo Mduna
Ntokozo Mduna - avatar