Compuer science
some help please...
Attachments:
Answers
Answered by
0
Answer:
#include <iostream>
using namespace std;
int main()
{
// To find total marks of 3 subjects
int A1,A2,A3;
cout<<"Enter marks of Subject 1 :";
cin>>A1;
cout<<"Enter marks of Subject 2 :";
cin>>A2;
cout<<"Enter marks of Subject 3 :";
cin>>A3;
int Tolat_Marks;
Total_Marks=A1+A2+A3;
cout<<"Total marks of subjects are "<<Total_Marks
return 0;
}
Explanation:
Simply create 3 variables and add total marks
to time average divide total marks by 3
to find highest marks compare each marks lime
If(A1>A2 && A1>A3)
{ cout <<"A1 is highest marks "}
and compare all varibles like this
Similar questions