C++ 编程:判断跳水比赛奖项
#include
int main() { double score; cin >> score; if (score >= 92.8) { cout << 'jin' << endl; } else if (score >= 85.6) { cout << 'yin' << endl; } else if (score >= 82.1) { cout << 'tong' << endl; } else { cout << 'sorry' << endl; } return 0; }
原文地址: http://www.cveoy.top/t/topic/qtE5 著作权归作者所有。请勿转载和采集!