Write VB script to test given number is Prime Number
Answer Posted / prasanth
Dim n
count=0
n=inputbox("enter a number")
For i=2 to n-1
If n mod i=0Then
count=count+1
End If
Next
If count>1 Then
print "given numer is normal number"
else
print "given number is prime number"
End If
| Is This Answer Correct ? | 8 Yes | 15 No |
Post New Answer View All Answers
How QA specialist can identify when programmatic descriptions are useful?
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
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
what is description object?
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
Limitations in QTP?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
What is CMMP and CMMH?
What is checkpoints for qtp?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
Define Environment Variable in UFT and its uses?
By using QTP can we record any log files written by the application which is in execution?
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this