Untitled
By: a guest | Feb 9th, 2010 | Syntax:
C++ | Size: 0.45 KB | Hits: 32 | Expires: Never
#include <iostream>
using namespace std;
extern "C" int FrequentNumber(int size, int *s);
int main()
{
cout << "Enter the number of numbers in array :" ;
int n; cin >> n;
//int *s = new int[n];
int s[333];
cout << "Enter " << n << " numbers of your array:\n";
for (int i=0; i<n; i++)
cin >> s[i];
cout << "The most freauent digit in all these numbers is: ";
cout << FrequentNumber(n, s) << endl;
cout << endl;
return 0;
}