WAP to enter name and marks of three subjects & print average marks
Question:
Write a program to enter name and marks of
three subjects. Find out the average and print the output.
TEXT:
DEFSTR
n
DEFINT a–e
INPUT
"Enter Name of Student:"; n
INPUT
"Enter Marks of English :"; a
INPUT
"Enter Marks of Nepali :"; b
INPUT
"Enter Marks of Maths :"; c
LET d =
a+b+c
LET e =
d/3
PRINT
"Name of Student:" ; n
PRINT
"Marks of English :" ; a
PRINT
"Marks of Nepali :" ; b
PRINT
"Marks of Maths :" ; c
PRINT
PRINT
"Total Marks" ; d
PRINT
"Average Marks" ; e
END