Answer Posted / 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 |
Post New Answer View All Answers
in a web page How to check and display a particular word from a paragraph?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
In qtp, how you can use xpath to identify objects?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
How to modify object property in qtp ?
Explain quicktest professional testing process?
How the exception handling can be done using quicktest professional?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
How can get count of list box?
In qtp is it possible to check broken links of a page?
How to analyzing the checpoint results?
How to find operating system information using the qtp script?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.