Answer the question
In order to leave comments, you need to log in
Why can't java count?
for (int x = 1; x<=1500000000; x*=10){
System.out.println(x);
}
Answer the question
In order to leave comments, you need to log in
in java, the int type holds 32 bits. This is from -2147483648 to 2147483647
Because the size of int is finite. Do you want endless? Use BigInteger. And read about additional code and overflow. This is a school course in computer science.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question