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

边栏推荐
- 2021-04-02
- Precise delay based on Cortex-M3 and M4 (systick delay of system timer can be used for STM32, aducm4050, etc.)
- CUDA compilation error
- Click to jump out and drag the pop-up window
- The print area becomes smaller after epplus copies the template
- H5 canvas drawing circle drawing fillet [detailed explanation]
- Edge loss 解读
- Tanhaoqiang C language practice
- Laravel's little knowledge
- JS handwriting depth clone array and object
猜你喜欢

MySQL prevents Chinese garbled code and solves the problem of Chinese garbled code
![Bind simulation, key points of interpreting bind handwritten code [details]](/img/03/6aa300bb8b8342199aed5a819f3634.jpg)
Bind simulation, key points of interpreting bind handwritten code [details]

API interface management setup -eolinker4.0

Matlab notes

Five simple data types of JS

Array and simple function encapsulation cases

Personalized Federated Learning with Moreau Envelopes

Use js to simply implement the apply, call and bind methods

Summary of SQL injection (I)

Compatible with Internet Explorer
随机推荐
Reading and writing of nodejs excel (.Xlsx) files
Page electronic clock (use js to dynamically obtain time display)
电子协会 C语言 1级 28 、字符菱形
Use serialize in egg to read and write split tables
H5 native player [learn video]
Laravel's little knowledge
Activereportsjs V3.0 comes on stage
JS function to realize simple calculator
2021-03-23
Basic bit operation symbols of C language
Example of dynamic programming 3 leetcode 55
Detailed summary of flex layout
Professional things use professional people
Swift rapid development
CopyPlugin Invalid Options options should be array ValidationError: CopyPlugin Invalid Options
Go deep into the working principle of browser and JS engine (V8 engine as an example)
ThinkPHP 5 log management
C language -- Sanzi chess
Database overview
JS handwriting depth clone array and object