I need to display all prime numbers from 1 to 50
I used a nested for loop with two Ifs in the second for loop. One to check if i mod j comes to 0 the other to check if i does not equal j. I'm having troubles with the mod if. Can anyone tell me what to put as the if?
I currently have i mod(j)<> 0
Edited by achapman91, 11 December 2009 - 10:16 PM.