+ 2

What is int x = 1, function in the program.

while loop program

8th Jul 2018, 7:17 AM
martins micheal
2 Answers
+ 1
That sets the variable x to 1.
8th Jul 2018, 7:18 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 4
Hello, martins micheal ! "int" is an integer variable which at you it has the name "x" and is equal in this case "1" You need to learn more lessons with variables, you can do it on SoloLearn. https://www.sololearn.com/learn/Java/2139/
8th Jul 2018, 7:24 AM
Alexander Sokolov
Alexander Sokolov - avatar