Search:

Type: Posts; User: Oldemor

Search: Search took 0.06 seconds.

  1. Replies
    7
    Views
    948

    Re: Help with a for loop and formating

    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.
  2. Replies
    7
    Views
    948

    Re: Help with a for loop and formating

    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...
  3. Replies
    7
    Views
    948

    Re: Help with a for loop and formating

    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...
  4. Replies
    7
    Views
    948

    Re: Help with a for loop and formating

    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...
  5. Replies
    7
    Views
    948

    Help with a for loop and formating

    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...
Results 1 to 5 of 5