Computer Science, asked by Anonymous, 3 months ago

writa a program to enter any number upto 4 digit chek whether it is 1 digit number or 2 dight number or 3 digit number or 4 digit number. pls answer fast ​

Answers

Answered by ayushrai70
0

Explanation:

BG QN LSA coattails naga ma BSA and jk wall JD cums

Answered by valeriy69
1

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def find_len(n):

if len(n) == 1:

return "1 digit"

if len(n) == 2:

return "2 digits"

if len(n) == 3:

return "3 digits"

if len(n) == 4:

return "4 digits"

return "more than 4 digits"

n = input("enter a num: ")

print(find_len(n))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions