From 80255411ee7040e0cebbf6b05d2ce323f6f2596e Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Fri, 22 Aug 2014 17:23:02 +0800 Subject: backup --- Back/Blocks/code.html | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Back/Blocks/code.html (limited to 'Back/Blocks/code.html') diff --git a/Back/Blocks/code.html b/Back/Blocks/code.html new file mode 100644 index 0000000..40ff107 --- /dev/null +++ b/Back/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