Home > Back-end >  For help
For help

Time:06-05

Write a function fn1, for n students, through the keyboard input performance score, calculate the average score, and returns its value,

1

Write a function fn2, for n students, through the keyboard input performance score, the number of failed to pass the toll, c1 and c2, and outputs,

1

Write the main function main, through the keyboard input the choice of user s, fn1 statistical average, when the user input 1 input 2 call fn2 statistics the number of pass or fail, input zero return,

1

Thinking: when points stored in the array, how to pass parameters? For function fn2, how to return to pass the number of the number of failed the c1 and c2?

CodePudding user response:

Do you want to let a person give you code, under, or want to let people answer questions?

CodePudding user response:

Post code, if attached again is the best ~

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related