what is wrong with that code
it is not working
it is simple but it ..............
it take 10 numbers get max and min value and sum ang average
but>>>>>

#include <iostream.h>
#include <math.h>
void main()
{int i;
 float a[3],s,e,ma,mi,z;
 char d;

s=0.0;
 e=0.0;
 mi=0;
         ma=0;
 cout<<"plz enter the student degrres";
 for(i=0;i<3;i++)
 {cout<<"no ";
 cout<< i+1;
 cout<< " \n";
  cin>> z;
  a[i]=z;
s=s+a[i];
 
 if(i=0){ma=a[i];
 mi=a[i];
 cout<<" f";}endl;
 
  if (a[i]>=ma)ma=a[i];
  if (mi>=a[i])mi=a[i];

 }
 e=s/3;
cout<< s;
cout<< e;
cout<< mi;
cout<< ma;
cin>> d;
};



plz send me fast  
thanx....

Reply via email to