Write a Java method to displays prime numbers between 1 to 20
belongs to collection: Method/Function programming exercises in Java
All Answers
total answers (1)
belongs to collection: Method/Function programming exercises in Java
total answers (1)
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
1
2
3
5
7
11
13
17
19
need an explanation for this answer? contact us directly to get an explanation for this answer