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
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
• What type of testing questions will be asked for 2+ yrs exp people in interview?
How many types of recording facility are available in quicktest professional (qtp)?
What is difference in global and action sheet in qtp?
What is test object?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
Hello friends..... On which areas of an application we can not test with QTP
What is the use of text output value in quicktest professional?
What are the different types of recording modes?
What is output value? How many types of output values are there in qtp?
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
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
Your roles and responsibilities and daily tasks? (As automation tester)