write a c++ program that accepts marks in 5 subjects and outputs average marks.
1
Expert's answer
2012-11-27T09:54:13-0500
#include <iostream> #include <stdlib.h>
using namespace std;
int main() { int n; int m,a=0; cout<<"please enter marks"<<endl; for (int i=1;i<=5;i++) { cin>>n; a=a+n;} m=a/5; cout<<endl<<"average="<<m<<endl; & & system("PAUSE"); & return 0; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment