当前位置:网站首页>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 database learning notes - foreign keys, table connections, subqueries, and indexes for MySQL multi table queries
- VIM view file code
- Redux source code implementation
- Golang's handwritten Web Framework
- Several commands not commonly used in MySQL
- uniapp 微信小程序返回上一页并刷新
- leetcode763. Divide letter interval
- SHELL
- ES6 array traversal and Es5 array traversal
- Use and principle of completionservice (source code analysis)
猜你喜欢

Dao -- a beautiful new world?

图像处理7-图像增强

Jgaurora A8 configuration file
![[GPU] basic operation](/img/76/6b22368e3addd30aef1dd2258ee49a.jpg)
[GPU] basic operation

One sentence introduction to Trojan horse

VLAN access mode

Learn fpga---ram IP core and key parameters from the bottom structure

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

Master slave synchronization of MySQL database to realize read-write separation

Gestion des utilisateurs de la base de données MySQL
随机推荐
JS prototype chain object function relationship
超简单 STM32 RTC闹钟 时钟配置
Golang's handwritten Web Framework
Zibll子比主题V6.4.1wordpress 开心版源码下载_破解原版/直接使用/无需教程
Zibll sub theme v6.4.1wordpress open source download_ Crack the original / use it directly / no tutorial required
luoguP2756 飞行员配对方案问题(最大流)
Share problems solved
拼多多店铺搜索相关问题,为什么新品上架搜索不到
Ten years' miscellaneous thoughts
8 ways to earn passive income
[OSPF] comparison between rip and OSPF
关于Glide加载图片模糊不清楚
ES6 array traversal and Es5 array traversal
[database] transaction
Learn fpga---ram IP core and key parameters from the bottom structure
Cisco VXLAN配置
ES6扩展运算符(...)
Detailed description of methods in the interface
How does Altium designer hide some temporarily unnecessary classes, such as GND
STM32F103 series controlled OLED IIC 4-pin