I already wrote some code and would like to know how to make all the prime numbers under 10, (2,3,5,7) to be multiplied by the first 5 digits above 0, (1,2,3,4,5). Here n on the 5th line would be the prime numbers under 10.
package sct;
public class PrimeNumberMultiplicationTables {
}
public static void main(String[] args) {
int n = ??? ;
for(int i=1; i <= 5; i++)
{
System.out.println(n+" multiplied by "+i+" = "+n*i);
}
}
}
Thank you in advance to whoever finds this.