Professional Documents
Culture Documents
write a java program to read a positive number N(N>0) print the no of divisors of
number N which are perfect squares.
input
36
output
4
input
60
output
2
But every number will have atleast '1' as divisors which is a perfect square
so the output will be 1
case = 2
input = 60
output = 2
case = 3
input = 10
output = 1
case = 4
input = 5
output = 1
Program-2
Write a program to check if a given number is COMPLETE NUMBER or NOT
A Number is said to be COMPLETE NUMBER if the individual digits of the number are
all even
if the individual digits of the number are not even then print NOT COMPLETE NUMBER
input = 46
output = COMPLETE NUMBER
input = 135
output = NOT COMPLETE NUMBER
input = 100
output = NOT COMPLETE NUMBER
input = 208
output = COMPLETE NUMBER
case = 2
input = 135
output = NOT COMPLETE NUMBER
case = 3
input = 100
output = NOT COMPLETE NUMBER
case = 4
input = 208
output = COMPLETE NUMBER