C++ Hotspot For Beginners
average marks
Program to find the average marks of ten students
#include<iostream.h>
#include<conio.h>
int main()
{
int student[10];
float avg;
for (int e=0;e<=9;e++)
{
cout<<e<<endl;
avg +=avg[e];
}
cout<<"Average marks= "<<avg/10.0<<endl;
getch();
return 0;
}
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
No comments :
Post a Comment