# 日常敲代码

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
void main()
{
int x, max, i;
scanf("%d", &max);
i = 1;
do
{
scanf( "%d",&x );
if (x > max) max = x;
i = i + 1;
}
while (i <= 9);
printf("max= %d", max);
system("pause");

}


#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
void main()
{
int a, b ,c;
printf("请输入两个要交换的数:\n");
scanf("%d %d", &a, &b);
printf("交换前两个数：a=%d and b=%d\n", a,b);
c = a;
a = b;
b = c;
printf("交换后两个数为: a=%d and b=%d\n", a, b);
system("pause");
}


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
void main()
{
int a, b, c;
printf("请输入要交换的两个数:\n");
scanf("%d %d", &a, &b);
printf("交换前的两个数为：a=%d and b=%d\n", a, b);
a = a + b;
b = a - b;
a = a - b;
printf("交换后的两个数为：a=%d and b=%d\n", a, b);
system("pause");
}


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
void main(){
int a, b, c, t;
prinf("请输入三个数:\n");
scanf("%d %d %d,&a,&b,&c");
if (a<b){
t = a;
a = b;
b = t;
}
if (a<c){
t = a;
a = c;
c = t;
}
if (b<c){
t = b;
b = c;
c = t;
}
printf("%d %d %d\n", a, b, c);
system("pause");

}


02-02 101
08-20 2978
04-01 1523
12-28 6853
08-29 87
01-08 4447
08-01 6540
06-04 6735
03-05 668
09-29 137
02-17 1050
11-09 51
03-18 564
05-06