Home > Software > Testing > Manual-Testing
Interview Questions   Tutorials   Discussions   Programs   Videos   

Manual-Testing - Write the test cases on prime number with result?




641
views
asked marvit October 6, 2014 11:47 PM  

Write the test cases on prime number with result?


           

1 Answers



 
answered By shallu   0  

Precondition: let the prime no be n case1: expected o/p (prime no)result divide the no n by 1 remainder=0 pass divide the no n by n remainder=0 pass

divide the no n by 2 remainder!=0 pass . . divide the no n by upto n-1 and if remanider not equal zero then it is a prime no.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert