当前位置:网站首页>Using C language pure for loop to implement ilovey
Using C language pure for loop to implement ilovey
2022-06-30 06:12:00 【Inflamed shellfish】
I just started to learn C When speaking, it's too delicious , Just don't understand for How exactly does the loop work , In order to understand deeply what is for loop , Just die hard and use pure for Loop wrote a few lines of unfashionable code .emmmmmmmmm
Today, I accidentally found something on the computer , Not deleted yet .
Let's take a look at the running effect. Ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha 
Source code is as follows
#include "stdio.h"
void main()
{
int i,j;
printf("\n");
for(i=1;i<=2;i++)
{
for(j=1;j<=4;j++)
printf(" ");
for(j=1;j<=20;j++)
printf("J");
printf("\n");
}
for(i=1;i<=10;i++)
{
for(j=1;j<=12;j++)
printf(" ");
for(j=1;j<=4;j++)
printf("J");
printf("\n");
}
for(i=1;i<=2;i++)
{
for(j=1;j<=4;j++)
printf(" ");
for(j=1;j<=20;j++)
printf("J");
printf("\n");
}
printf("\n");
printf("\n");
for(i=1;i<=3;i++)
{
for(j=1;j<=67-2*i;j++)
printf(" ");
for(j=1;j<=4*i+1;j++)
printf("X");
for(j=1;j<=13-4*i;j++)
printf(" ");
for(j=1;j<=4*i+1;j++)
printf("X");
printf("\n");
}
for(i=1;i<=3;i++)
{
for(j=1;j<=60;j++)
printf(" ");
for(j=1;j<=29;j++)
printf("X");
printf("\n");
}
for(i=1;i<=7;i++)
{
for(j=1;j<=2*i+59;j++)
printf(" ");
for(j=1;j<=31-4*i;j++)
printf("X");
printf("\n");
}
printf(" ");
printf("X\n");
printf("\n");
for(i=1;i<=6;i++)
{
for(j=1;j<=2*i+126;j++)
printf(" ");
for(j=1;j<=2;j++)
printf("YY");
for(j=1;j<=24-4*i;j++)
printf(" ");
for(j=1;j<=2;j++)
printf("YY");
printf("\n");
}
for(i=1;i<=10;i++)
{
for(j=1;j<=140;j++)
printf(" ");
for(j=1;j<=2;j++)
printf("YY");
printf("\n");
}
for(i=1;i<=20;i++)
printf("\n");
}
After reading it, just point a favor and support it before you leave ~~
Crab o
边栏推荐
猜你喜欢
随机推荐
Voting vault: a new primitive for defi and Governance
Installation and initialization of MariaDB database
Completabilefuture: from understanding to mastering, here are all you want to know
ES6 deconstruction assignment
ES6数组遍历与ES5数组遍历
Tornado frame foundation
8 ways to earn passive income
JS prototype chain object function relationship
[OSPF] comparison between rip and OSPF
Golang之手写web框架
Rotate dimension tool rolabelimg
880. decoded string at index
ES6解构赋值
New project folder based on PIO plug-in in vscode -- Interpretation
Strlen and sizeof, array length and string length, don't be silly
MySQL advanced SQL statement
Uniapp wechat applet returns to the previous page and refreshes
[ansible series] fundamentals -01
Unclear about glide loading picture
反编译正常回编译出现问题自己解决办法



![[GPU] basic operation of GPU (I)](/img/ce/0ca8c63525038fea64c40aabd17fc6.jpg)




