Home > Net >  For c # code
For c # code

Time:09-24

Have a of the array number n, please prepare a function, its features are: the number of all the number is prime CNT, then the number of all meet the conditions of average PJZ1, and does not meet the conditions of four digits average PJZ2, call a function to end CN, PJZ1, PJZ2 output to the console.

CodePudding user response:

is a college student???????

CodePudding user response:

Very simple
COUNT the data. The COUNT () function is ok,
As for the average judgment, easier to write a
Foreach (var Itme in data sources)
{
If (Itme=="average")
{
O
}
The else {
O
}
}
  •  Tags:  
  • C#
  • Related