1 testcase failing

please make the required modifications in my code so that the logic is clear to me and I can easily figure out my mistake

hi @Riya-Verma-1207263756078812,
if num is 0 you should print 5 but as your condition is while(num != 0) so it wont enter the while loop
just handle this case

you can write in main

long long int num;
	cin >> num;
	if(num == 0){ // to handle this case
		cout<<5;
		return 0;
	}
	cout << replaceThemall(num);
       return 0;
}```

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.