Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

please help

  Asked By: Ahmed    Date: Apr 20    Category: C++ Programming    Views: 733
  

Write a function that receives five marks by a student and returns the average.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Abhishek Singh     Answered On: May 14


/logic/

select(float a,floatb,floatc,floatd,float e)
{
scanf("%f,%f,%f,%f,%f",&a&b&c&d&e);
x=(a+b+c+d+e)/5;
return x;
}
void main()
{
o=select( a,b,c,d, e);
printf("%f",o);
getch();
}

 
Didn't find what you were looking for? Find more on please help Or get search suggestion and latest updates.




Tagged: