请在 下方输入 要搜索的题目:

若运行时输入:2<CR>,则以下程序的运行结果是 。#include <stdio.h>void main(void){char class;printf("Enter 1 for 1st class post or 2 for 2nd post");scanf("%c",&class);if (class=='1') printf("1st class postage is 19p");else printf("2nd class postage is 14p");}

若运行时输入:2,则以下程序的运行结果是 。#include void main(void){char class;printf("Enter 1 for 1st class post or 2 for 2nd post");scanf("%c",&class);if (class=='1') printf("1st class postage is 19p");else printf("2nd class postage is 14p");}

发布时间:2025-06-15 05:29:26
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:2nd class postage is 14p
专业技术学习
专业技术学习
搜搜题库系统