to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject
Answers
Answered by
10
i can give coding in turbo c++ code
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
float avg;
cout<<"\nENTER ANY THREE VALUES";
cin>>a>>b>>c;
avg=a+b+c/3;
cout<<"\nTHE AVERAGE OF THREE MARKS IS:"<<avg;
getch();
}
hope this helps
Similar questions