Category: News

How to divide 2 int in c?

wanna divide 2 numbers and get the result like this: 5 / 2 = 2.50 But it only outputs 2. I don't now what i'm doing wrong. Here my code: int a; ...