Untitled
raw download clone
CPP
views 30
,
size 262 b
#include <iostream>
using namespace std;

void cifre(int a)
{
    if(a <= 9)
        cout << a << ' ';
    else
    {
        cifre(a / 10);
        cout << a % 10 << ' ';

    }

}

int main ()
{
    int n;
    cin >> n;

    cifre(n);
}
close fullscreen
Login or Register to edit or fork this paste. It's free.