Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int m1,m2,m3,m4,m5,total;
  6. float average;
  7. cout<<"enter the marks of 5 subjects:"<<endl;
  8. cin>>m1>>m2>>m3>>m4>>m5;
  9. total=m1+m2+m3+m4+m5;
  10. cout<<"total marks:"<<total<<endl;
  11. average=total/5;
  12. cout<<"average:"<<average<<endl;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement