Sunday, 24 January 2021

VBScript Class - 7

 

 VBScript Class - 7 by S P SHARMA CLASSES (7048972696)


<html>

<body>

<script type="text/VBScript">

Dim i, j 

For i = 1 To 5

For j = 1 To 5

document.write(j)

Next

document.write("<br/>")

Next


document.write("<br/>...................</br></br>")


For i = 1 To 5

For j = 1 To 5

document.write(i)

Next

document.write("<br/>")

Next



document.write("<br/>...................</br></br>")


For i = 1 To 5

For j = 1 To i

document.write(j)

Next

document.write("<br/>")

Next


document.write("<br/>...................</br></br>")


dim x

x=1

do while x<5

document.writeln(x)

x=x+1

Loop



document.write("<br/>...................</br></br>")


'dim x

x=1

do while x<5

x=x+1

document.writeln(x)

Loop




document.write("<br/>...................</br></br>")



x=1

do 

document.writeln(x)

x=x+1

Loop while x<5



document.write("<br/>...................</br></br>")



x=1

do 

x=x+1

document.writeln(x)

Loop while x<5



document.write("<br/>...................</br></br>")

x=1

do 

x=x+1

document.writeln(x)

Loop while x<1



document.write("<br/>...................</br></br>")

x=1

do while x<1

x=x+1

document.writeln(x)

Loop




document.write("<br/>...................</br></br>")

x=1

do until x=5

document.writeln(x)

x=x+1

Loop


document.write("<br/>...................</br></br>")

x=10

do until x>5

document.writeln(x)

x=x-1

Loop



document.write("<br/>...................</br></br>")

x=10

do until x<5

document.writeln(x)

x=x-1

Loop




document.write("<br/>...................</br></br>")

x=1

while x<5

document.writeln(x)

x=x+1

wend

</script>

</body>

</html>

No comments:

Post a Comment