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
please can you help me to get a code of flames using a visual basic 6
can anyone tell me the procedure of interview held in applabs
What are the different types of loops available in the vbscript language?
How to Import data from a file (file is on the desktop) to the data table
why variable name should not exceed 255 characters?
after medical test,when will be the police verification
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
what is the object hyrarchy in QTP for a web based application
How will you get a combined string from array of string in vbscript?
Explain the string concatenation function in vbscript?
Why is error handling required?
Explain the extension .hta?
Explain about the support of asp for vb script functionality?
write any ttest cases using check points and parameterization
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me