How to find if given number is prime or not
Answer / vishnu
flag = 1
n=cint(inputbox("Enter a number to find whether it is Prime
or Not"))
For i=2 to (n-1)
If n mod i = 0 then
flag = 0
Exit for
End if
Next
If flag = 1 then
msgbox "Yes! It is a Prime number"
Else
msgbox "No! it is not a prime number"
End if
| Is This Answer Correct ? | 8 Yes | 0 No |
How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.
Hello! i am having two comboboxes.Each having 10 items in it.when i select first item in first combobox,it is not similar in the second combobox.for ex in first combo if it is Hyderabad,in second it should be some chenai or some other item .Write a VBSCRIPT for that?
How we test web based application by using QTP
How can we disable popup blocker?
Why to use descriptive programming?
Whats the realtime QTP testing process
In qtp,how to interact tool & application build?
how can I read text in browser and export the same into text file?
What is the limitation to XML Checkpoints?
i want 8.2 and 9.2 dacuments plhelp any body sand it to my id sandhyat1@yahoo.co.in
What is the standard timing delay for web based application in qtp?
How to supress warnings from the "Test results page"?