K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
#include <iostream> using namespace std; int main() { int x = 7, y = 3; double res1 = x / y; double res2 = (double)x / y; cout << res1 << " " << res2 << endl; return 0; }
2 2.33333
2.33333 2
2 2
2.33333 2.33333