Search here for all the info you want in this Blog

write a program to print even numbers starting from 2 to 20

'11) write a program to print even numbers starting from 2 to 20

For i=2To20Step2
WScript.Echo i
Next


' or you can also write another logic

For i=2To20Step1
If (i Mod2)=0Then
WScript.Echo i
EndIf
Next

No comments:

Post a Comment