# Question: i wrote a program but the middle algorithm and the...

###### Question details

I
wrote a program, but the middle algorithm and the correct result
are not the same, can you help to see the arithmetic formula where
to correct it? Thank you. The correct result is printed on paper.
Programing C