Saturday, May 26, 2018

Qbasic Program to print the following pattern without using locate function. 1, 26, 3710, 481113,59121415

Qbasic Program to print the following pattern without using locate function.




CLS
FOR r = 1 TO 5
    p = r
    FOR c = 1 TO r

        PRINT p;

        p = p + 5 - c

    NEXT c

    PRINT
NEXT r
END

1 comment:

  1. 5 10 15 20 25
    7 12 17 22
    9 14 19
    11 16
    13

    solve this pettern program in q basic

    ReplyDelete