Home  >  Article  >  php教程  >  PHP输出九九乘法表代码实例

PHP输出九九乘法表代码实例

WBOY
WBOYOriginal
2016-06-13 09:09:14884browse

PHP输出九九乘法表代码实例

 这篇文章主要介绍了PHP输出九九乘法表代码实例,本文直接给出实现代码,需要的朋友可以参考下

 

 

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

九九乘法表

 

 

for ($i=1; $i

{

echo("

");

for ($j=1; $j

{

echo("

");

}

echo("

");

}

?>

九九乘法表

if ($i == $j)

{

echo(" style=\"color: #FF0\"");

}

echo(">");

$s = $i * $j;

echo "$i * $j = $s";

echo("

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn