write a vb script to display first 5 odd numbers from 1 to 100
Answer Posted / psri
dim a(50)
j=0
for i = 1 to 100
if (i mod 2) <> 0 then
a(j)=i
j=j+1
cnt=cnt+1
End if
next
msgbox "The odd no is "& join(a) &"The total no of odd no's
is"&cnt
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How to Import data from a file (file is on the desktop) to the data table
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
what do you mean .ota mobile format
Mention how to access array data?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Mention what is vbscript?
how to check whether link is disabled in QTP??
how to increasing the numbers in a given text box please write a vb script
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Which function is used to perform string comparison?
can anyone tell me the procedure of interview held in applabs
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
How will you get a combined string from array of string in vbscript?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
How will you release the memory acquired by an array variable in vbscript?