write a vb script to display first 5 odd numbers from 1 to 100
Answer Posted / eswar
cnt =0
For i=1 to 100
If (i mod 2 <> 0) Then
MsgBox i
cnt=cnt+1
End If
If cnt=5 Then
Exit for
End If
Next
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
What are the valid scopes of a variable in vbscript?
How will you reverse a string in vbscript?
How will you get the octal value of the given number in vbscript?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
What's the difference between vbscript and vb.net?
What is the use of the date function in the vbscript language?
How can you create an object in vbscript?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
who will create the object?
What is event handling in vbscript?
Mention what is the main difference between function and sub-procedure?
Explain about scrrun.dll?
How can you destroy an object in vbscript?
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.