已采纳回答 / 梦里花开Z
#include<stdio.h>int main(){ double num1 = 2.5; int num2 =(int) num1; printf("num的整数部分是%d\n",num2); return 0;}
2019-09-25