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 |
What is the limitation to XML Checkpoints?
How do you capture tooltip using QTP?
what is the use of Browser.sync()
how we will use output values in qtp? is there any possibulity by descriptive programming?
How you will rate urself in QTP in the range of 0 to 5
Limitations in QTP?
tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.
Please explain about unicode compatibility in QTP. how we can able to use it. Please help me
how to load vbs file to qtp through scripting. plz provide the code.....
What is Object Spy?
can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function
Hi, i am rani ,i am putting 1+years of fake exp ,so pls anyone explain how i get project (in real time) ? how it is tested ex: in banking ,test the number of textboxes in one window