Computer Science, asked by phaneendra58, 1 year ago

C++ program for calculating marks & grade of a student

Answers

Answered by uttamtooldie27p3k9w2
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
Similar questions