Write VB script to test given number is Prime Number
Answer Posted / vijay kumar
Dim n
count=0
n=inputbox("enter a number")
For i=2 to n-1
If n mod i=0 Then
count=count+1
End If
Next
If (count/2)<> 0 Then
print "given number is normal number"
else
print "given number is prime number"
End If
| Is This Answer Correct ? | 42 Yes | 14 No |
Post New Answer View All Answers
How many types of object repository in qtp?
How u will do versioning in QTP?
What is expert view and keyword view?
How QTP identify the system time that's changes every seconds?
By using QTP can we record any log files written by the application which is in execution?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
What are the advantages of a Hybrid framework?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
In qtp is it possible to check broken links of a page?
How to handle the exceptions using the recovery scenario manager in qtp?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
What are the ordinal identifiers in web page?
assume i have few url link how will i dynamically call then using descriptive programming?