九九乘法表
```javascript
var i,j;
for(i=1;i<=9;i++){
for(j=1;j<=i;j++){
console.log(i+"*"+j"="i*j);
}
console.log("/n");
}
C语言**的四种不同九九乘法表的输出
#include <stdio.h>
int main() {
int i ,j;
for (i=1;i<=9;i++){
for(j=1;j<=i;j++){
printf("%d*%d=%2d ",i,j,i*j);
}
printf("\n");
}
return 0;
}
#include <stdio.h>
int main() {
int i ,j,n;
for (i=1;i<=9;i++){
for (n=1;n<=9-i;n++){
printf(" ");
}
for(j=1;j<=i;j++){
printf("%d*%d=%2d ",i,j,i*j);
}
printf("\n");
}
return 0;
}
#include <stdio.h>
int main() {
int i ,j,n;
for (i=1;i<=9;i++){
for(j=1;j<=9;j++){
if (j<i){
printf(" ");
}
else
printf("%d*%d=%2d ",i,j,i*j);
}
printf("\n");
}
return 0;
}
#include <stdio.h>
int main() {
int i ,j,n;
for (i=1;i<=9;i++){
for(j=1;j<=9;j++){
if (j<i){
printf(" ");
}
else
printf("%d*%d=%2d ",i,j,i*j);
}
printf("\n");
}
return 0;
}
|