Recent Posts
Java | 12 sec ago
None | 13 sec ago
PHP | 14 sec ago
None | 21 sec ago
None | 49 sec ago
Python | 1 min ago
None | 1 min ago
None | 1 min ago
Python | 1 min ago
None | 1 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Anonymous on the 9th of Feb 2010 08:16:35 PM
Download |
Raw |
Embed |
Report
#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;
}
Submit a correction or amendment below.
Make A New Post