当前位置:网站首页>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
边栏推荐
- Data read / write: realize data read / write function based on C # script in unity
- Variable parameters of go
- Navigate back to fragmentpageradapter - & gt; Fragment is empty - navigating back to fragmentpageradapter - & gt; fragments are empty
- Rotate dimension tool rolabelimg
- 【微信小程序:单选、多选样式,背景色,圆角】
- Gestion des utilisateurs de la base de données MySQL
- RSA and AES
- Multithreading advanced level
- New project folder based on PIO plug-in in vscode -- Interpretation
- Redux source code implementation
猜你喜欢
Summation of basic exercise sequence of test questions
我做功能测试这么多年的心得
Master slave synchronization of MySQL database to realize read-write separation
[OSPF] comparison between rip and OSPF
[Alibaba cloud] student growth plan answers
RSA and AES
MySQL index
Dynamic programming -- gliding wing of the strange thief Kidd
One sentence introduction to Trojan horse
[GPU] basic operation
随机推荐
Golang之手写web框架
Verilog中case,casez,casex语句的用法
01. regular expression overview
Uniapp wechat applet returns to the previous page and refreshes
ES6解构赋值
Mariadb数据库的安装与初始化
Completabilefuture: from understanding to mastering, here are all you want to know
Share problems solved
MySQL數據庫用戶管理
One sentence introduction to Trojan horse
880. 索引处的解码字符串
[regular expression series] greedy and non greedy patterns
Multithreading advanced level
Jgaurora A8 configuration file
MySQL transaction
网络基础知识
Decompilation normal decompilation problems. Solve them yourself
To: k210 realizes face recognition (code interpretation attached)
Rotate dimension tool rolabelimg
ini解析学习文档