Question: please give output asap in c++ 9. Write a c+program to find the highest occurring digit in prime numbers in a given range. Given a
please give output asap in c++

9. Write a c+program to find the highest occurring digit in prime numbers in a given range. Given a range L to R. the task is to find the highest occurring digit in prime numbers lie between L and R (both inclusive). If multiple digits have same highest frequency print the largest of them If no prime number occurs between L and R, output 1 Examples: Input : L-1 and R- 20 Output : 1 Prime number between 1 and 20 are 2. 3,3, 7, 1, 13, 17, 19 I occur maximum ie 3 times among 0 to 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
