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
On login window for username and password auto populated field means what !
What is the difference between load and stress testing?
in the account there is 10,000 rupees and i entered 20000, in this case how will you test the application
What is a maturity level?
user id @ yahoo.com (or) yahoo.co.in (or) gmail.com.... etc
What is application programming interface (api)?
What will be the testcase for a uniquely generated number in the application?? i mean to say is, how will i conform the application is generating a unique value.... please do answer...
What r the things,u prefer and prepare before starting testing?
can any one explain me briefly erp pharma project including all modules,like how to tell this project in interview in terms of s/w testing
What r the functional testing u perform?
What is difference between Build, Version and Release
What is Web testing & which action we take at the time of Web Testing?
Which are the standards for software test plans?
how is market for testing in banglore,chennai,pune,delhi?
ANY ONE HAS ATTENDED THE INTERVIEW FOR WIT INNOVATION P LTD? THEN KINDLY LET ME KNOW ABOUT THE INTERVIEW PROCESS AND QUESTIONS ASKED.