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
aplitue questions will be based on wich type ?
when database testing comes into manual tesing
How can you do the usability testing?
what should be tested when credit card is used as payment option in ecommerce project?can anyone tell me in detail what to test n how to test when credit card is involved in web application?
Explain the components of a test plan?
How will you do beta testing?
What’s the difference between a bug and a defect?
What is stub?
What is checkpoint? How can you handle the checkpoints?
How can write testcases on a code under development pls give asnwer
Unix question: 1)command to print a list of files containing a particular word. 2) what does a .profile mean. 3) what is a file server? 4) Command to move towards left in vi editor explain grep and find commands using example.
What are the main key components in web applications and client and server applications?
What are the different ways of doing black box testing?
What knowledge I must have as a 3 yrs. manual tester??
How to write test case for view the table(i.e it is already stored in database and see the content in the table)