Hi, The main thing is about Precision Error. Though you get all the correct output but there is some input you get those error. Try to use double instead of float, its a good practice. And one thing is, dont use ".000%", it will come automatically and dont need to store average. Just print...