当前位置:网站首页>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]);
}
} 

边栏推荐
- Various pits encountered in the configuration of yolov3 on win10
- DOM document object model (I)
- SSRF-lab
- Essais de pénétration - sujets d'autorisation
- Electric store stores data
- JS handwriting depth clone array and object
- 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“
- ORA-00800: soft external error
- Using JS to realize the sidebar of life information network
- Detailed summary of float
猜你喜欢

C language -- Sanzi chess

Difference between asemi high power FET and triode

How micro engine uploads remote attachments
![[Huawei machine test] hj16 shopping list](/img/54/d28f5aea9350af7797ca7c069e564d.jpg)
[Huawei machine test] hj16 shopping list

How to open the DWG file of the computer

Uva1103 ancient pictograph recognition

CSRF (Cross Site Request Forgery) &ssrf (server request forgery) (IV)

SQL lab range explanation
![H5 native player [learn video]](/img/51/83a200d0423b7274d1e981ec2ede2c.jpg)
H5 native player [learn video]

Penetration test - right raising topic
随机推荐
Create dynamic array
Install pytorch through pip to solve the problem that torch cannot be used in jupyter notebook (modulenotfoundererror:no module named 'Torch').
API interface management setup -eolinker4.0
Array and simple function encapsulation cases
A summary of the experiment of continue and break in C language
2022.1.23 diary
Characteristics of ES6 arrow function
Working principle of asemi three-phase rectifier bridge
Drag modal box
DOM document object model (I)
Route parameters to jump to the page and transfer parameters -- > hidden parameter list
Page electronic clock (use js to dynamically obtain time display)
Detailed summary of flex layout
滲透測試-提權專題
Go Methods and Interfaces
[relax's law of life lying on the square] those poisonous chicken soup that seem to be too light and too heavy, but think carefully and fear
For in JS Of and for in
Svg code snippet of loading animation
Read the general components of antd source code
parallel recovery slave next change & parallel recovery push change