1.九九乘法表(格式一):
//java
public class ForDemo03 {
public static void main(String[] args) {
for (int j = 1;j <= 9;j++) {
for (int i = 1; i <= j; i++) {
System.out.print(j + "*" + i + "=" + (i * j) + "\t");
}
System.out.println();
}
}
}
//c
#include<stdio.h>
#include<stdlib.h>
int main(){
int num1, num2;
for (