From 31fb10f393fbfd4d7adf528ec70624d2b8d247a8 Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Thu, 20 Feb 2014 12:50:15 +0800 Subject: Six Blocks Version --- Blocks/code.html | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Blocks/code.html (limited to 'Blocks/code.html') diff --git a/Blocks/code.html b/Blocks/code.html new file mode 100644 index 0000000..40ff107 --- /dev/null +++ b/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