954
3879
管理员
#include <stdio.h> int main() { int a = 10; int b = 20; int c; if (a > b) { c = a; } else { c = b; } printf("c1 = %d\n", c); a = 1; b = 2; c = ( a > b ? a : b ); printf("c2 = %d\n", c); return 0; }
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
手机版|小黑屋|编程站点 ( 冀ICP备2023028127号-2 )|友链申请|
GMT+8, 2025-7-1 17:50 , Processed in 0.094724 second(s), 22 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.