I actually fixed it today...the divisor++ should have been outside of the IF statement (in bold where it should be).
public class Lab3_2 {
public static void main(String[] args) {
final...
Type: Posts; User: stommy989
I actually fixed it today...the divisor++ should have been outside of the IF statement (in bold where it should be).
public class Lab3_2 {
public static void main(String[] args) {
final...
I must be getting pretty close... here's my code now:
public class Lab3_2 {
public static void main(String[] args) {
final int NUMBER_OF_PRIMES = 50; // Number of primes to display
...
Hi everyone,
I'm taking an intro Java course, which I'm quite honestly, not very good at it. Anyways, we have this Prime # program that counts all the Prime #'s up to 50 using a for loop:
...