Given a number and a single digit number as the input.
Find the index of that single digit number.
for eg. a=83456, x=4
output should be y=3
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers52
Suggested Problems
-
Maximum running product for a string of numbers
2258 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2906 Solvers
-
Project Euler: Problem 4, Palindromic numbers
1295 Solvers
-
Flip the main diagonal of a matrix
922 Solvers
-
Area of an equilateral triangle
6966 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!