标签:include ext sum 语言 char turn rest i++ utf-8
#PHP九九乘法表#
<html>
<head>
</head>
<body>
<p>
<?php
header(‘Content-Type:text/html;charest=utf-8‘);
$i=1;
$n=1;
$sum;
for($n=1;$n<=9;$n++){
for($i=1;$i<=$n;$i++){
$sum=$n*$i;
echo "$n*$i=$sum\t";
}
echo ‘<br/>‘;
}
?>
</div>
</p>
</body>
</html>
2.C语言九九乘法表
#include<stdio.h>
int main() {
int i,n,sum;
for (i = 1; i <= 9; i++) {
for (n = 1; n <= i; n++) {
sum = n * i;
printf("%d*%d=%d ",n,i,sum);
}
printf("\n");
}
return 0;
}
标签:include ext sum 语言 char turn rest i++ utf-8
原文地址:https://www.cnblogs.com/my-boke/p/14008261.html