aboutsummaryrefslogtreecommitdiff
blob: 40ff1077e15d264a4fcdde550e37e5ca9da35fad (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>World of Codes</title>
	<script type="text/javascript" src="syntax/scripts/shCore.js"></script>
	<script type="text/javascript" src="syntax/scripts/shBrushCpp.js"></script>
	<link type="text/css" rel="stylesheet" href="syntax/styles/shCoreDefault.css"/>
	<style type="text/css">
	body {
	background-color: #FF0000;
	background-image: url();
}
    </style>
	<script type="text/javascript">SyntaxHighlighter.all();</script>
</head>

<body style="background: white; font-family: Helvetica">

<h1>A gift of code</h1>
<pre class="brush: cpp;">
/**
* We are both from Lanxi No.1 Middle School,where we met for the first time
* I write some code to celebrate your birthday.
*/
#include "stdio.h"
int main()
{
    int i,j;
	for(i=0;i< 9;i++)
	{
	if(i==0||i==8)
	{
		for(j=0;j< 11;j++)
			printf("*");
	}
	else
    {
		for(j=0;j< 11;j++)
		{
			if(j< 7 && j>3)
				printf("*");
			else
				printf(" ");
		}
    }
        printf("\n");
	}
		for(i=0;i< 2;i++)
		{
			for(j=0;j< 2-i;j++)
				printf(" ");
			for(j=0;j< 2*i+1;j++)
				printf("*");
			for(j=0;j< 5-2*i;j++)
				printf(" ");
			for(j=0;j< 2*i+1;j++)
				printf("*");
			printf("\n");
		}
		printf("***********\n");
		for(i=0;i< 6;i++)
		{
			for(j=0;j< i;j++)
                printf(" ");
			for(j=0;j< 11-2*i;j++)
                printf("*");
			printf("\n");
        }
			for(i=0;i< 5;i++)
			{
                for(j=0;j< 11;j++)
					if((j<=1&&j>=0)||(j<=10&&j>=9))
                        printf("*");
					else
                        printf(" ");
                    printf("\n");
            }
			for(i=0;i< 5;i++)
			{
                for(j=0;j< i;j++)
                    printf(" ");
                printf("**");
				for(j=0;j< 7-2*i;j++)
                    printf(" ");
			if(i==4)
                printf("*");
			else
                printf("**\n");
            }
    printf("\n");
	return 0;
}


</pre>
</html>
Powered by cgit v1.2.3 (git 2.41.0)