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

How do you test DLL files using automation Tool QTP?

3227


With what extension you can save the list of tests in a file to run in test batch runner?

1011


hi nani my doubt is how does qtp process metrix related to software process.

1991


What is the meaning Work bench?

2218


What is throw Object?

2131


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2349


How can you write the scripts that operate on different objects depending on run-time information?

2580


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

2170


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

2012


What are the different recording modes and how do they work?

1079


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2508


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1954


What is difference between design time and run time data table?

1133


Explain in brief about the quicktest professional (qtp) automation object model?

970


banking domain description for software tester for interview

3911