Ejercicios estructura repetitiva
This commit is contained in:
1 parent
70b99a0a23
commit
99ade1ddb3
6 files changed
+113
-16
No files matched your search
@@ -1,3 +1,10 @@
|
||||
void main() {
|
||||
$END$
|
||||
public class EstructuraRepetitiva2 {
|
||||
public static void main(String[] args) {
|
||||
for (int i = 1; i <= 9; i++) {
|
||||
for (int j = 1; j <= 9; j++) {
|
||||
System.out.printf("%2d x %2d = %3d\n", i, j, i*j);
|
||||
}
|
||||
System.out.println("--------------");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user