C++ program for calculating marks & grade of a student
Answers
Answered by
1
#include <iostream.h>
void main()
{
int m1, m2, m3;
int total; char grade;
cout << "\t\t Enter the marks in three subjects ";
cin >> m1 >> m2 >> m3;
total = m1 + m2 + m3;
grade = (total >= 200)? 'A' :'B';
cout << "\t\t Grade is = > " << grade;
if u like mark as a brainliest answer and also comment thanks
void main()
{
int m1, m2, m3;
int total; char grade;
cout << "\t\t Enter the marks in three subjects ";
cin >> m1 >> m2 >> m3;
total = m1 + m2 + m3;
grade = (total >= 200)? 'A' :'B';
cout << "\t\t Grade is = > " << grade;
if u like mark as a brainliest answer and also comment thanks
Similar questions