0
What to do (C++) to get a fractional value?
For example: int not_Fraction = 23/5; cout << not_Fraction; return 0; This prints only the whole number and avoids any remainder. But what do i need to do get the value in fraction?
1 Antwort
+ 1
use float or double instead of int