[Solved] My program, works but keeps on returning 0

[ad_1]

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, use QR = (((Q1 + Q2 ) / 20.0) * 25.0 ) instead.

You will see values that are not 0.

1

[ad_2]

solved My program, works but keeps on returning 0