Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
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 Réponse
+ 1
use float or double instead of int