0
i want to get 2 numbers from user and do operation for him like 2*6 and when he wrote it he see 2*6=12 how i could code this ?
system.out.println(num1*num2)
4 Réponses
+ 3
Lesson about getting user input with scanner.
https://www.sololearn.com/learn/Java/2220/
If it is a number, replace nextLine with nextInt
0
what i have to do to make the output as i said
0
It is not hard. You have the last line correct. You need only three more lines above. Try it.