public class CWH_PS5 {
public static void main(String[] args) {
int n =8;
for(int i=1; i<=10; i++){
System.out.printf("%d X %d = %d\n",n,i,n*i);
}
}
}
//output
8 X 1 = 8 8 X 2 = 16 8 X 3 = 24 8 X 4 = 32 8 X 5 = 40 8 X 6 = 48 8 X 7 = 56 8 X 8 = 64 8 X 9 = 72 8 X 10 = 80 Process finished with exit code 0

0 Comments