K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
#include <iostream> using namespace std; int main() { int a = 5; double b = 2.5; float c = a + b; int d = static_cast<int>(b); cout << c << " " << d << endl; return 0; }
7.5 2
7 2
7.5 3
5 2