/**
* practice
*/
public class practice {
public static void main(String[] args) {
int sc,sst,maths,eng,sans,agg_marks;
double perc;
sc = 60;
sst = 49;
maths = 79;
eng = 99;
sans = 96;
agg_marks = sc+sst+maths+eng+sans;
perc = agg_marks*100/500;
System.out.println(agg_marks);
System.out.println(perc);
i expected it to have no problem with calculation of percentage and it would be accurate but it shows 76 instead of 76.6.