table de multipliation
public class Multiplication {
public static void main(String[] args) {
int n = 1;
for(int i = 1; i <= 12; ++i)
{
System.out.printf("%d * %d = %d \n", n, i, n * i);
}
}
}
Sortie:
1 * 1 = 1
1 * 2 = 2
1 * 3 = 3
1 * 4 = 4
1 * 5 = 5
1 * 6 = 6
1 * 7 = 7
1 * 8 = 8
1 * 9 = 9
1 * 10 = 10
1 * 11 = 11
1 * 12 = 12