Thanks! I'll give it a go later, I need to get some rest first, busy day for me.
Type: Posts; User: xdrechsler
Thanks! I'll give it a go later, I need to get some rest first, busy day for me.
Do I have to change the entire program or I just add something to it with regards to newbie's post?
Got It!
OUTPUT:
Can you help me with the whitespace so that I can enter "20+5" instead of "20 + 5".
I'm sorry but I don't really know how to use Scanner. I've tried some but I ended up the same with using BufferedReader.
@Sean4u
Yes! that's what I'm saying. Can you help me with the java.lang.Scanner because we are not using it in our class.
Let me put it this way. Let say I want to ADD 3 and 5. So the computer will ask me to enter/input my equation which is "3+5". Then, the computer will display the sum which is 8.
INPUT: 3+5
SUM: 8...
"3+5" there was supposed to be an input but they are equivalent to 3 variables which is (num1, operation, num3)
OUTPUT
Enter Operation: +
Enter Number 1: 3
Enter Number 2: 5
* end of program *
But our professor wants us to have an output like this,
OUTPUT
Input: 3+5