calculate percentage of 5 subject in c programming