I have recently started a programming course and as part of that I decided to sign up to a few online resources to enhance
my learning experience.I look forward to growing in knowledge and hopefully some day in the future,being able to give back
by helping other newcomers to programming here on Big Moose Saloon (love the freakin name btw)
My question is probably a simple one but it is 2:25 am here and I can't recall how to go about it .
This just a simple code to add and multiple. First i define my variables int num1, int num2 and int num3. i also define my result variable which is going to hold my results as a double.
I guess you wanted to return the results as double.
I use the Scanner java.util because it is handy for a beginner and easy to use. All it does is to capture what you typed when you press enter. But you can use anything you feel comfortable with.
There is a whole lot in the java Documentation.
Finally is display the results with the system.out.println command
I am afraid I shall have to tell you off. Please read this:-
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
It appears on the contents page of this forum. We do not believe that you help people by simply giving them a complete solution. You should allow them to work out the problem for themselves before giving complete solutions.