K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
如下C++代码片段:
#include <iostream> using namespace std; int main() { int a = 5; double b = 2.0; cout << a / b << endl; cout << 5 / 2 << endl; cout << 5 % 2 << endl; return 0; }
2.5、2、1
2、2、1
2.5、2.5、1
2、2.5、1