Friday, 15 November, 2024

2:11 am [NEPAL, GMT+5:45]

Coming Soon .... !

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.

 

Answer:

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