题目内容
运行以下程序,若输入China#<回车>,则输出结果为( )。#include using namespace std;int main(){int c1=0,c2=0; char ch;while ((ch=getchar())!='#')switch (ch){ case 'a':case 'h':c2++;default: c1++;}cout << c1 << "," << c2 << endl;return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题