Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write VB script to test given number is Prime Number

Answer Posted / kishore

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>3 Then
print "given numer is normal number"
else
print "given number is prime number"
End If

Is This Answer Correct ?    31 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can any suggest me what is exposure testing?

1760


how will you load the test cases in ddt?

2011


How many add-ins comes by default with quicktest professional (qtp)?

950


What are the key elements available in test result window?

1100


Describe how Smart Identification is used

2176


What is RTM (require ment tracebulity marix) fromate?

1977


What is accessibility check point?

1035


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

1994


Is it possible to call from one action to another action in qtp?

980


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

1481


How to find Operating system information using QTP script?

952


Name the different types of recording modes?

977


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

2331


How will you report the bug and explain the defect tracking sheet you handled?

3013


your coming from electrical backgroung..but y ur coming to software side?

1742