当前位置:网站首页>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
边栏推荐
猜你喜欢

CompletableFuture从了解到精通,你想知道的这里都有

【微信小程序:单选、多选样式,背景色,圆角】

Cisco vxlan configuration

Detailed description of methods in the interface
![[MD editing required] welcome to the CSDN markdown editor](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[MD editing required] welcome to the CSDN markdown editor

Verilog中case,casez,casex语句的用法

Dao -- a beautiful new world?

Voting vault: a new primitive for defi and Governance

SparseArray

MySQL advanced SQL statement
随机推荐
[Alibaba cloud] student growth plan answers
[ansible series] fundamentals 02 module debug
Data read / write: realize data read / write function based on C # script in unity
ES6 array
SparseArray
Use of tornado template
[exercise] basic practice letter graph of Blue Bridge Cup
Ten years' miscellaneous thoughts
8 ways to earn passive income
583. 两个字符串的删除操作-动态规划
接口中方法详解
880. decoded string at index
Intelligent question - horse racing question
How to use unmarshaljson
重构之美:当多线程批处理任务挑起大梁 - 万能脚手架
File operation io-part1
Jgaurora A8 configuration file
Potential bottleneck of redis
MySQL事物
RSA and AES