V
V
vadimkenny2021-10-07 19:39:25
C++ / C#
vadimkenny, 2021-10-07 19:39:25

How to find out the number of all squares in a number?

It is necessary to write a program that will find the number of all odd numbers that are a square in a number.
For example 149 consists of 1^2, 7^2, 3^2 = number is 3.
How to do this in c++?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor Vlasenko, 2021-10-07
@vadimkenny

These are all odd numbers from digits 1,4,9
The function is called mutations
I think in 5 minutes you will find a lot of implementations

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question