#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include "main.h"
int main()
{
int nums[2];
int Max;
printf("请输入第一个数:\r\n");
scanf("%d",&nums[0]);
getchar();
printf("请输入第二个数:\r\n");
scanf("%d",&nums[1]);
getchar();
if(nums[0]>nums[1])
{
Max=nums[0];
}
else
{
Max=nums[1];
}
printf("最大的数是:%d \r\n",Max);
system("pause");
}
输入两个数并输出最大值,最小值
猜你喜欢
转载自blog.csdn.net/kesshei/article/details/81230739
今日推荐
周排行