Write number pattern programs in VBScript


For i = 1 to 10
    Vishwa= Vishwa & i
    Print Vishwa
Next

OutPut
1
12
123
1234
12345
123456
1234567
12345678
123456789
12345678910


For i = 5 To Step -1
    For j = 1 To i
        Vishwa= Vishwa & j
    Next
    Print Vishwa
    Vishwa = ""
Next

OutPut
12345
1234
123
12
1

Comments

Popular posts from this blog

UFT File Types and File Extensions

QTP/UFT Version History

Synchronization in UFT