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 |
Which Databases supports for QTP?
why we are using environment variables instead of global variables?
I want to install qtp software in my system, My operating system is vista . Anybody please suggest me how to get QTP software with licence key
Write a script to customize the test results in PDF and HTML format.
Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?
How to test the login page in different ways in automation testing and i need code?
What is text check point and text area check point?
i have batch scripts in qtp and i want to update the status like pass/fail in excel sheet after excecuting the every script in batch.how to write the script for this?
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
What is the entry and exit point of automation testing
Where you can store check point results?
In our application (Web based application)we will get a pdf file and we have check a particular text in that pdf. Can any one tell how to check text in a pdf file. In the same pdf file it generating some links and I have to click that links. QTP unable recognizing that links, even id did record and playback qtp does not generating any script. Can any one help me….?