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