最新回答 / Feng4011060
#include <stdio.h>int main(){ double num = 2.5; int a =(int)num; //定义浮点型变量num并赋值为2.5 printf("num的整数部分是%d\n", a); return 0;}
2020-12-11