1. 程式人生 > >C語言-(double)int/int

C語言-(double)int/int

main double ble bsp can class true clas 語言

int main(){
	int x, y;
	scanf("%d %d", &x, &y);
	double c = (double) x/y;
	printf("%f", c);
	return 0;
}

輸出 0.3333333

C語言-(double)int/int