Hi, Anybody could you Please tell me How to write the
script for Checking whether given number is Prime Number or
not..Thanks in Advance
Answer Posted / manu
x=inputbox("enter a number")
prime = TRUE
for i = 0 to x-1
if x mod 2 = 0 then
prime = FALSE
end if
next
if prime then
msgbox "prime number"
else
msgbox "not prime"
end if
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How to create a function in vbscript?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
who will create the object?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
What is Procedure or Subroutine in VB Script?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
What is the difference between for loop and while loop?
Explain about filter expression?
Mention how you can call vbscript functions?
How will you get the last occurrence of one string within another string using vbscript?
What are the advantages of vbscript?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
Both Static and dynamic arrays are handled by VB script. Is it true?
write any ttest cases using check points and parameterization
How you can call vbscript functions?