当前位置:网站首页>Array introduction plus example 01
Array introduction plus example 01
2022-06-25 05:21:00 【m0_ fifty-nine million nine hundred and forty-nine thousand fou】






#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void main()
{
int i, a[10];
for (i = 0; i <= 9; i++)
{
a[i] = i;
}
for (i = 9; i >= 0; i--)
{
printf("%d\n", a[i]);
}
}


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void main()
{
int i, max, a[10];
printf("input 10 number:\n");
for (i = 0; i < 10; i++)
scanf("%d", &a[i]);
max = a[0];
for (i = 1; i < 10; i++)
if (a[i] > max)max = a[i];
printf("maxmum=%d\n", max);
} 
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void main()
{
int i;
int a[20] = { 1,1 };
for (i = 2; i < 20; i++)
{
a[i] = a[i - 2] + a[i - 1];
}
for (i = 0; i < 20; i++)
{
if (i % 5 == 0);
printf("\n");
printf("%12d", a[i]);
}
} 

边栏推荐
- CTFHub-rce
- Array and simple function encapsulation cases
- Duplicate symbols for architecture i386 clang
- Edge loss interpretation
- JSON Library Tutorial from scratch (III): parsing strings, learning and sorting notes
- Database low-end SQL query statement fragment
- Can bus extended frame
- Example of dynamic programming 3 leetcode 55
- Go deep into the working principle of browser and JS engine (V8 engine as an example)
- Essais de pénétration - sujets d'autorisation
猜你喜欢

Read the general components of antd source code

Activereportsjs V3.0 comes on stage

JSON Library Tutorial from scratch (II): parsing digital learning and sorting notes

C language -- Sanzi chess

渗透测试-提权专题

Enhanced paste quill editor

Install pytorch through pip to solve the problem that torch cannot be used in jupyter notebook (modulenotfoundererror:no module named 'Torch').

Difference between asemi high power FET and triode

Example of dynamic programming 3 leetcode 55
![H5 canvas drawing circle drawing fillet [detailed explanation]](/img/6f/a33a323b6cd0918066e8b71a22d841.jpg)
H5 canvas drawing circle drawing fillet [detailed explanation]
随机推荐
PHP calls map API
Penetration information collection steps (simplified version)
Native JS high risk reminder pop-up code snippet, "are you sure you want to do this?" and "it cannot be recovered after deletion. Do you want to continue“
February 19 CTF exercise
JSON Library Tutorial from scratch (II): parsing digital learning and sorting notes
Apache+php uploading large files
Go Context - Cancelation and Propagation
What if win11 Bluetooth fails to connect? Solution of win11 Bluetooth unable to connect
Conflict between v-mode and v-decorator in Ant Design
Uva1103 ancient pictograph recognition
Drag modal box
Detailed summary of float
2021-10-24
SRC platform summary
Penetration test - right raising topic
Array and simple function encapsulation cases
JSON Library Tutorial from scratch (III): parsing strings, learning and sorting notes
Jason learning
cuda编译报错
2022.1.25