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