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...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 9th of Feb 2010 08:16:35 PM Download | Raw | Embed | Report
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. extern "C" int FrequentNumber(int size, int *s);
  5. int main()
  6. {
  7.         cout << "Enter the number of numbers in array :" ;
  8.         int n; cin >> n;
  9.         //int *s = new int[n];
  10.         int s[333];
  11.         cout << "Enter " << n << " numbers of your array:\n";
  12.         for (int i=0; i<n; i++)
  13.                 cin >> s[i];
  14.  
  15.         cout << "The most freauent digit in all these numbers is: ";
  16.         cout << FrequentNumber(n, s) << endl;
  17.         cout <<  endl;
  18.         return 0;
  19. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: