From b214f38d2c24a890ce36512a0c8bab965e27a508 Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Tue, 23 Sep 2014 22:34:14 +0800 Subject: README --- Code/Blocks/code.html | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Code/Blocks/code.html (limited to 'Code/Blocks/code.html') diff --git a/Code/Blocks/code.html b/Code/Blocks/code.html new file mode 100644 index 0000000..40ff107 --- /dev/null +++ b/Code/Blocks/code.html @@ -0,0 +1,97 @@ + + + + + World of Codes + + + + + + + + + +

A gift of code

+
+/**
+* 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;
+}
+
+
+
+ -- cgit v1.2.3