Odd and even back in delhi

Sir I’m getting output for only one input .Can you modify my code.
#include
#include
using namespace std;
int main(){
int n,d,i=1;
cin>>n;
while(n!=0){
d=n%10;
if(d>=5){
d=abs(d-9);
s=s+di;
i=i
10;
i++;
}
}
}

Hey @dips123deepali_c25f140838182212 your code is not giving any output and also there are multiple test case to be solved so you have to take the input for testcase also.
https://ide.codingblocks.com/s/627894 this is the correct code if you have any difficulty in understand you can ask.

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.