Skip to content

Commit 7d8388c

Browse files
committed
Add htmls and Pascal triangle c file
1 parent 5b53c64 commit 7d8388c

File tree

12 files changed

+276
-0
lines changed

12 files changed

+276
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#include <stdio.h>
2+
int main()
3+
{
4+
int n;
5+
printf("please input a num:\n");
6+
scanf("%d", &n);
7+
int a[n][n];
8+
for (int i = 0; i < n; i++)
9+
{
10+
a[i][i] = 1;
11+
a[i][0] = 1;
12+
}
13+
for (int i = 2; i < n; i++)
14+
{
15+
for (int j = 1; j <= i - 1; j++)
16+
{
17+
a[i][j] = a[i - 1][j - 1] + a[i - 1][j];
18+
}
19+
}
20+
printf("array is :\n");
21+
for (int i = 0; i < n; i++)
22+
{
23+
for (int j = 0; j <= i; j++)
24+
{
25+
printf("%d ", a[i][j]);
26+
}
27+
printf("\n");
28+
}
29+
// print_array(a, n, n);
30+
return 0;
31+
}
32+
33+
void print_array(int **n, int row, int column)
34+
{
35+
for (int i = 0; i < row; i++)
36+
{
37+
for (int j = 0; j < column; j++)
38+
{
39+
printf("%d", n[i][j]);
40+
}
41+
}
42+
}

html/1.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<h1>123456</h1>
2+
<p>12345<br>
3+
1234<br />
4+
1234567<br />
5+
12<br />
6+
</p>
7+
<!--
8+
<h1>content</h1> Heading
9+
<p>content</p> paragraph
10+
-->

html/2.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
11+
</body>
12+
</html>

html/3.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-w idth, initial-scale=1.0">
8+
<title>Document</title>
9+
</head>
10+
11+
<body>
12+
<h1>123456</h1>
13+
<p>12345<br>
14+
1234<br />
15+
1234567<br />
16+
12<br />
17+
<b>123456</b>
18+
<i>123456</i>
19+
1<b>2</b>3<br>
20+
1<b><i>2</i></b>3<br>
21+
1<i><b>2</b></i>3<br>
22+
<a href="https://www.baidu.com"><h1>百度</h1></a>
23+
<a href="./1.html">1.html</a>
24+
</p>
25+
</body>
26+
27+
</html>

html/4.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>老婆~</title>
9+
</head>
10+
11+
<body>
12+
13+
<h1>最喜欢你了~ 傲娇变态baka老婆酱</h1><br>
14+
<!--
15+
<img src="./ajbtbkj.jpg" alt="傲娇变态baka酱~" height="50" width="50">
16+
-->
17+
<img src="./9baka&Mayuri.png" alt="傲娇变态baka酱~" height="300">
18+
</body>
19+
20+
</html>

html/5.html

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>Document</title>
9+
<base href="index.css">
10+
<link rel="stylesheet" href="index.css">
11+
<style>
12+
/* .box{
13+
font-size:20px;
14+
color: blue;
15+
} */
16+
</style>
17+
</head>
18+
19+
<body>
20+
<font color="red" size="10">
21+
<h2>script</h2>
22+
</font>
23+
<script>document.write("hello world")</script>
24+
<font color="red" size="10">
25+
<h2>class</h2>
26+
</font>
27+
<div class="box">
28+
<p><b>123456</b></p>
29+
<p><b>12345</b></p>
30+
<p><b>1234</b></p>
31+
<p><b>1234567</b></p>
32+
<p><b>12</b></p>
33+
</div>
34+
<font color="red" size="10">
35+
<h2>Table</h2>
36+
</font>
37+
<table border="10">
38+
<!--TableHead -->
39+
<th>Header 1</th>
40+
<th>Header 2</th>
41+
<th>Header 3</th>
42+
<!--TableRoll -->
43+
<tr>
44+
<td>row 1, cell 1</td>
45+
<td>row 1, cell 2</td>
46+
<td>row 1, cell 3</td>
47+
</tr>
48+
<!--TableRoll -->
49+
<tr>
50+
<td>row 2, cell 1</td>
51+
<td>row 2, cell 2</td>
52+
<td>row 2, cell 3</td>
53+
</tr>
54+
</table>
55+
<font color="red" size="10">
56+
<h2>Line</h2>
57+
</font>
58+
<!--OrderLine-->
59+
<ol>
60+
<li>123</li>
61+
<li>456</li>
62+
<li>789</li>
63+
</ol>
64+
<!--UnorderLine-->
65+
<ul>
66+
<li>123</li>
67+
<li>456</li>
68+
<li>789</li>
69+
</ul>
70+
<font color="red" size="10">
71+
<h2>Form</h2>
72+
</font>
73+
<form action="">
74+
用户名 <input type="text" name="user">
75+
密码 <input type="password" name="password">
76+
<input type="submit">
77+
</form><br><br>
78+
<form action="">
79+
<input type="radio" name="sex" value="male"><br>
80+
<input type="radio" name="sex" value="female"><br>
81+
------------------------------------------------------ <br>
82+
<input type="checkbox" name="fruit" value="banana">香蕉 <br>
83+
<input type="checkbox" name="fruit" value="apple">苹果 <br>
84+
------------------------------------------------------ <br>
85+
</form>
86+
<form action="">
87+
<select name="fruit" id="a">
88+
<option value="1">apple</option>
89+
<option value="2">banana</option>
90+
<option value="3">peach</option>
91+
<option value="4">orange</option>
92+
</select>
93+
</form>
94+
<button><input type="submit" name="" id=""></button>
95+
<table border="2">
96+
<caption>数字</caption>
97+
<tr>
98+
<td>1</td>
99+
<td>2</td>
100+
<td>3</td>
101+
</tr>
102+
</table>
103+
</body>
104+
105+
</html>

html/9baka&Mayuri.png

1.4 MB
Loading

html/e1.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<h1>咏鹅</h1><br>
11+
<h3>鹅鹅鹅</h3><br>
12+
<b>上一句</b> <a href="./e2.html"><b>下一句</b></a>
13+
</body>
14+
</html>

html/e2.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<h1>咏鹅</h1><br>
11+
<h3>曲项向天歌</h3><br>
12+
<a href="./e1.html"><b>上一句</b></a> <a href="./e3.html"><b>下一句</b></a>
13+
</body>
14+
</html>

html/e3.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<h1>咏鹅</h1><br>
11+
<h3>白毛浮绿水</h3><br>
12+
<a href="./e2.html"><b>上一句</b></a> <a href="./e4.html"><b>下一句</b></a>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)