Write VB script to test given number is Prime Number
Answer Posted / apoorva
bresult = False
Num = 907
For i = 2 To Num / 2
If Num Mod i = 0 Then
bresult = True
Exit For
End If
Next
If bresult = True Then
MsgBox "Prime"
Else
MsgBox "Not Prime"
End If
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
How did you use regular expressions in QTP and also in WR?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
What is the Difference between copy to action and call to action?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
any body can you help me what is the script to automate an comand promt
What are test settings and global settings?
How to analyzing the checpoint results?
What are the steps involved in the recovery scenario wizard?
Is it possible to change the property value at runtime? How it is possible?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
what is the advantages and disadvantages of using functions instead of re usable actions
Can the user toggle between using Local OR and shared OR for the same action?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window