Computer Science, asked by retro87, 4 months ago

Write a program to input a number and check whether it is a Kaprekar number.

Use the function void kaprekar ( int num ) to check the number.

Hint - In number theory, a Kaprekar number for a given base is a non-negative

integer, the representation of whose square in that base can be split into two

parts that add up to the original number again.

Example 1 –

Sample Input - 45

Sample Output -

452

= 2025 and 20 + 25 = 45

45 is a Kaprekar Number

Example 2 –

Sample Input - 9

Sample Output -

9

2

= 81 and 8+ 1 = 9​

Answers

Answered by ranjanashukla7881
1

Answer:

tell the chapter name

Explanation:

please send me chapter name

Similar questions