Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

Queastion in C++ about array to find the most repeated number and how many times [closed]

$
0
0

Write a C++ program to find the most occurring number and how many times it occurs in the following example of array.

I want a simple solution.

Example:int x []= {3, 12, 8, 15, 9, 22, 23, 8};The output:The number most repeated is : 8 and it occurs 2 times


Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images