Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

User addition result Help needed.  RSS feed

 
Mezan Shareef
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys Good morning, i am stuck with a doubt, in my program i am asking user to enter two numbers, i am using Scanner class, i want user to add those two numbers, i declared inputs as integers, and result of that addition also will be integer. then user would add and enter the result. How can i take that result and store in my variable ? I am confused here. ? I am still thinking...
 
Mezan Shareef
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it guys. Thanks. No worries.
 
Bobby Smallman
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good work at solving your own problem! In my opinion it is always more satisfying and helps you more in the long term when you work your way through your own problems.

Just a quick comment however, if you want quick and meaningful responses to your posts it is vital that you give a little more information, specifically some code. It is often times difficult for anyone to respond with any value without more to go on. I would always post whatever code you have thus far that you are trying to make work. Good luck to you and good job again at figuring out your own problem!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!