Given
the two positive integers p and q, where p < q. Write a program to
determine how
many
kaprekar numbers are there in the range between 'p' and 'q'(both
inclusive) and
output
them.
About
'kaprekar' number:
SAMPLE
DATA:
INPUT:
p=1
Q=1000
OUTPUT:
THE
KAPREKAR NUMBERS ARE:
1,
9, 45, 55, 99, 297, 703, 999
FREQUENCY
OF KAPREKAR NUMBERS IS:8
/* ISC
COMPUTER SCIENCE PRACTICALS SOLVED, 2010 */
No comments:
Post a Comment