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

边栏推荐
- Creation and use of MySQL index
- Personalized Federated Learning with Moreau Envelopes
- For in JS Of and for in
- Understand JS high-order function and write a high-order function
- Jason learning
- Create an environment for new projects
- Uva1103 ancient pictograph recognition
- Bind simulation, key points of interpreting bind handwritten code [details]
- Activereportsjs V3.0 comes on stage
- hr竟主动给这位测试小姐姐涨工资,她是怎么做到的?
猜你喜欢

How to use the Magic pig system reinstallation master

Uva1103 ancient pictograph recognition

IronOCR 2022.1 Crack

Eyeshot Ultimate 2022 Crack By Xacker

DOM document object model (I)

Attack and defense world web baby Web

Ctfhub eggs

Ranorex Studio 10.1 Crack

Customize the console plot result style

How to add an external header file in vs?
随机推荐
Detailed summary of float
Tanhaoqiang C language practice
Pointer array function combination in C language
Click to jump out and drag the pop-up window
Uva1103 ancient pictograph recognition
Laravel Vonage SMS sending
Critical dependency: require function is used in a way in which dependencies
How to download and use Xiaobai one click reload on the official website
First blog
Dynamic programming full backpack
Everything is an object
A review of small sample learning
渗透测试-提权专题
Database query optimization method
Fun CMD command line~
JSON Library Tutorial from scratch (III): parsing strings, learning and sorting notes
Can bus extended frame
What is Ethernet and how to connect the computer
IronOCR 2022.1 Crack
[keil] GPIO output macro definition of aducm4050 official library