program to check if a number if then denmaihen and number a denmaihen number is a non negative integers whose square and cube can be split into two equal parts ex 53^2 =2809which is divisible into 2 parts 28 and 09 and 53^3 = 148877 which is equally divisible into 2 parts 148 and 877 so 53 is a denmaihen num
Answers
Answered by
0
not know about computer check on Google
Explanation:
q
Answered by
0
Given:
A number
To find:
Program to check if a number if then denmaihen and number a denmaihen number is a non negative integers whose square and cube can be split into two equal parts ex 53^2 =2809which is divisible into 2 parts 28 and 09 and 53^3 = 148877 which is equally divisible into 2 parts 148 and 877 so 53 is a denmaihen num ber
SOLUTION:
python:
N=int(input())
S1=pow(N,2)
S2=pow(N,3)
If(len(S1)%2==0 and len(S2)%2==0): # CHECKING WHETHER THEY ARE OF EVEN LENGTH OR NOT
print(”it is a denmaihen number”)
else:
print(it is not a denmaihen number”)
Similar questions