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 ? | 41 Yes | 14 No |
Post New Answer View All Answers
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
Explain quicktest professional (qtp) testing process?
can u explain relative path architecture framework in qtp?
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
What is difference between run time object and test object?
How to use parameterization in qtp?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
Give the syntax to import/export xls into qtp.
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!!!
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
What test cases can you automate using QTP?
How the exception handling can be done using quicktest professional (qtp)?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent