+ 3

Write a c++ function

The mode of an array of numbers is the number m in the array that is repeated most frequently. If more than one number is repeated with eqnvtual maximal frequencies, there is no mode. Write a C++ function that h an array of numbers and returns the mode or an indication that the mode does not exist, and the corresponding program to test the function.

25th Jul 2018, 6:42 PM
Kelvin
4 odpowiedzi
+ 2
int function () { // C++ code here }
25th Jul 2018, 9:17 PM
program
program - avatar
+ 1
simplest function :- void main() { Your main program// }
26th Jul 2018, 7:03 AM
Nikhil
Nikhil - avatar
+ 1
could you help me write a full program please
30th Jul 2018, 5:54 PM
Kelvin
+ 1
int sum(int x,int y){ int z; z=x,y; return c; void main(){ int a,b; cin>>a; cin>>b; cout<<sum(a,b)<<endl; }
1st Aug 2018, 4:27 PM
Angga Agustira
Angga Agustira - avatar