[Solved] My program, works but keeps on returning 0
Without looking at the way values are computed, the main issue is that, in your output functions, you are doing integer arithmetic to compute a value that is smaller than 1. For example, in OutputQuizz, (Q1 + Q2 ) / 20 will usually be less than 1. To force the compiler to use floating point, … Read more