
***************
1
***************
‘Program to calculate total and average marks of two subjects
MarkInPhysics = 80
MarkInMath = 70
TotalMark = MarkInPhysics + MarkInMath
AverageMark = TotalMark / 2
PRINT TotalMark
PRINT AverageMark
END
***************
2
***************
REM To calculate the total and average mark
CLS
INPUT “Physics”; phy
INPUT “Mathematics”; math
Total = phy + math
Average = Total / 2
PRINT “Total=”; Total
PRINT “Average=”; Average
END
***************
3
***************
‘This program calculates the total & average marks of two subjects
CLS
READ Physics, Mathematics
Total = Physics + Mathematics
Average = Total / 2
PRINT Physics, Mathematics
PRINT Total, Average
DATA 80, 70
END
