Computer Science, asked by sarvesh14366, 5 months ago

Write a program to input a number and print all its digits in words as in the given

example

Eg: Input: 3756

Output : Three Seven Five Six​

Answers

Answered by kannanto2019
0

Answer:

int n;string str=\0;

cin>>n;

while(n>0)

{r=n%10;

if(r==0)

str=``zero ``+str;

.

.

. //similarly do unto nine

.

.

n=n/10;

}

Similar questions