Java coding (TMC)
By
bomberblyat
in Programming
in Programming
Go to solution
Solved by fjdhdhcyfhf,
if you enter the number 3 then num = 3 which means while (3 < 3) results in false. I dont know why it is counting down, I have had too many beers to work it out in my head.
If you want to count from one to the number entered then do this:
for (int i = 1; i <= num; i++){
System.out.println(i);
}
-
Topics
-
thrasher_565 ·
Posted in Hot Deals0 -
5
-
YoungBlade ·
Posted in CPUs, Motherboards, and Memory9 -
8
-
derekchan ·
Posted in New Builds and Planning10 -
1
-
2
-
7
-
5
-
7
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now