Computer Science, asked by yadavuma2434, 2 months ago

Write one program between these two, with algorithm, flowchart and output- WAP to print digit in words. or WAP to check whether given number is positive, negative or zero.

Answers

Answered by shaikandshaik11428
3

Answer:

I will answer in python language

Explanation:

op=int(input('Enter the following options\n1.\t to find it is +ve -ev or 0\n2.\t to write the num in words\n:- '))

if op ==1:

#to find positive negative or neutral

a=int(input('enter the number:- '))

if a>0:

print('+ve')

elif a==0:

print('Zero')

elif a<0:

print('-ve')

elif op==2:

#To write num in words

n=['ZERO','ONE','TWO','THREE','FOUR','FIVE','SIX','SEVEN','EIGHT','NINE']

a=int(input('enter the number:- '))

for i in str(a):

print(n[int(i)],end=' ')

else:

print('option out of range')

Similar questions