Welcome to the Ranch, Gilmar.
Couple of things before I forget
Class name
GettingUser_Input really should read as
GettingUserInput, while both names are not as good as could be, but the second one fits to
Java Coding Convention.
In Java there is no such data type as INT, there is an
int. Java is a case sensitive language, that means, "Gilmar" is not the same as "gilmar", same as INT not the same as int.
Gilmar Chaves wrote:It should multiply the input * 1, 2, 3 ... and so on, until 10, then stop. My question is: Why my code is multiplying until 38?
Please tell us, what exact user inputs where, what the output you were expecting, and what actually you were getting?
38 currently doesn't say a lot (to me).