English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm using VB ^^

A program that prints these stuff:

1
12
123
1234
12345
123456
1234567
12345678
123456789

please help..

2007-01-14 21:21:00 · 2 answers · asked by GunBouND Helena 1 in Computers & Internet Programming & Design

2 answers

Dim i,j

For i = 1 to 9
For j = 1 to i
Form.print j
Next j
Form.print Chr(13)
Next i

2007-01-14 21:57:43 · answer #1 · answered by ? 3 · 0 0

use two for loops
the first one from n=1 to 9
the second one from k=1 to n

2007-01-15 05:49:37 · answer #2 · answered by iyiogrenci 6 · 0 0

fedest.com, questions and answers