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
What is state transition?
What is configuration management in software testing ?
tell me some major and minor defects in ur net banking project?
How can I use bugzilla in my company to track a bug and to allow the client to see the bug report online throughbugzilla. Please explain in detail. I am really need this.
Hi, My name is Dinesh.I want to prepare for ISTQB certification , So can anyone please email me the syllabus of it and what is criteria for giving exam.Please email me answers at: dinesh0323@live.com
send the senario template
Can list out some disadvantages of manual testing?
What is manual testing and what is it process?
What is an audit report? Whom is it done by?
What r the documents required for performance testing
How will u decide test data to see that evey feature is thoroughly tested
HOW TO CREATE SRS REVIEW REPORT TO PL?
A form has four mandatory fields to be entered before you submit. How many numbers of test cases are required to verify this? And what are they?
Password is having 6 digit alphanumeric then what are the possible input conditions?
what kind of testing have u done?