Write a program(in QBASIC) to accept three marks of a student and the name of the student.Calculate the total and average marks and display both the results.
Answers
Answered by
0
Answer:
Explanation:
CLS;
INPUT "ENTER YOUR NAME",n;
INPUT "ENTER YOUR MARKS",m1;
INPUT "ENTER YOUR MARKS",m2;
INPUT "ENTER YOUR MARKS",m3;
Sum = m1 + m2 + m3
Avg = Sum/3
PRINT "" + n + "got" + Avg + " marks average "
END
Similar questions
World Languages,
6 months ago
English,
6 months ago
English,
6 months ago
Computer Science,
11 months ago
Biology,
1 year ago
Science,
1 year ago