
Anthony T. answered 09/22/20
MS Chemical Engineering-UC Berkeley | MS Computer Science GaTech
Not sure what you mean by output here, if you just need to print those numbers, then you can do as follows:
int yourFunction(int userNum, int x){
for (int i = 0; i < 3; i++){
userNum/=x;
cout<<userNum<<" ";
}
}