Ah :) Thank you for your expertise. I moved the test, and it worked like i was hoping it to do. Its okay that it doesn't print the whole line, as of now! Have a great day.
Type: Posts; User: Oldemor
Ah :) Thank you for your expertise. I moved the test, and it worked like i was hoping it to do. Its okay that it doesn't print the whole line, as of now! Have a great day.
My current issues:
If i put the parameter to 56, it prints out numbers up to 55. But if i put the parameter to 57, it prints out numbers up to 66??
Heres the current code:
private static void...
Got some problems now, if i put 45 as a parameter, it prints out correctly like this: 2398, but if i put it to for example 95, it turns out like this: 2399 Somehow it doesnt stop on 95 if i put the...
Ive come up with something, its almost done:
private static void printNumbersB(int n) {
int teller = 1;
for (int lineNumber = 1; lineNumber <= n; lineNumber++) {
for...
Hey! Im going to make a program that prints out this to the console: 2395
Anyone got any thoughts on how to do it? I think it has something to do with a for loop and some formatting of the...