当前位置:网站首页>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
边栏推荐
- MySQL日志管理、数据备份、恢复
- Data read / write: realize data read / write function based on C # script in unity
- Use and principle of completionservice (source code analysis)
- [GPU] basic operation of GPU (I)
- ES6扩展运算符(...)
- Redux source code implementation
- MySQL数据库用户管理
- Installation and initialization of MariaDB database
- 583. deleting two strings - Dynamic Planning
- MySQL summary
猜你喜欢

MySQL數據庫用戶管理

New project folder based on PIO plug-in in vscode -- Interpretation

How does Altium designer hide some temporarily unnecessary classes, such as GND

观察者模式、状态模式在实际工作中的使用

MySQL事物
A complete performance test process

My experience in functional testing for so many years
![[GPU] basic operation](/img/76/6b22368e3addd30aef1dd2258ee49a.jpg)
[GPU] basic operation

Use and principle of completionservice (source code analysis)

File operation io-part1
随机推荐
拼多多店铺搜索相关问题,为什么新品上架搜索不到
观察者模式、状态模式在实际工作中的使用
VIM view file code
MySQL advanced SQL statement
[GPU] basic operation
24、 I / O device model (serial port / keyboard / disk / printer / bus / interrupt controller /dma and GPU)
Strlen and sizeof, array length and string length, don't be silly
MySQL日志管理、数据备份、恢复
uniapp 微信小程序返回上一页并刷新
Golang之手写web框架
反編譯正常回編譯出現問題自己解决辦法
【学习强化学习】总目录
How does Altium designer hide some temporarily unnecessary classes, such as GND
多线程进阶篇
Data read / write: realize data read / write function based on C # script in unity
One sentence introduction to Trojan horse
583. deleting two strings - Dynamic Planning
SHELL
[deep learning] data segmentation
Completabilefuture: from understanding to mastering, here are all you want to know