#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int a, b, c; printf("请输入两个实数:\n"); scanf("%d%d", &a, &b); c = a > b ? a : b; printf(" the max of (%d,%d) is %d", a, b, c); return 0; }
这是一个小练习,新手可以自己动手练习一下
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!