write the test cases on prime number with result?
Answer Posted / pavithramadhesh
import java.util.Scanner;
public class prime {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter a Number: ");
int a=sc.nextInt();
if(((a/a)==1) && ((a/1)==a)){
System.out.println(a+" is Prime Number");
}else {
System.out.println(a+" is Not Prime Number");
}
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
List the considerations in developing testing methodology
how to verify a button size (e.g Login Button) on a web page have same dimension prescribed by Client in UI Testing..??
What is an entry criteria?
what is mean by impact analysis ,how we used to select regression TC using this?
Can you explain usability testing?
what are the responsibilities for QA tester to test application on UNIX environment??? what skills required for unix???
Hi Can any one tell wht type of questions will be asked in project manager round...urgent plz...
Hi, This is vkram.I had completed my B.E in May 2005 & currently i am undergoing Testing Course. I want to join as a Fresher in any MNC. What should I tell why u r coming to testing field & what u did this 2 years?
explain fish model in detail?
What are the different available models of sdlc?
which of the following is not a coding defect? Option 1 Test harness defect Option 2 Data flow defect Option 3 Initialisation defect Option 4 Algorithmic defect
What is data matrix? What is the use of it?
write test case for gmail login page
If anyone have attended interview with deloitte for the post of senior manual test engineer. Please share the interview process and the questions asked. How to prepare for the interview. Thanks in advance
Explain the defect life cycle.