I'm beginner to programming in general.
Say I have:
int x = 80;
int y = 6;
double average;
average = x / y;
printf("%f", average);
when i do this it outputs 13.000000 but i need it to output 13.33333
how would i go about doing this? i cannot change x or y to a double variable for it messes up other parts of my program. thanks in advance.