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
1
Answer:
tell the chapter name
Explanation:
please send me chapter name
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
Chemistry,
2 months ago
Social Sciences,
4 months ago
Math,
4 months ago
Physics,
11 months ago