> For the complete documentation index, see [llms.txt](https://docs-57.gitbook.io/data-structure-and-algorithms/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-57.gitbook.io/data-structure-and-algorithms/problems/recursion/divide-number.md).

# Divide Number

```csharp
static void DivideNumber(int n)
{
    if (n >= 10)
    {
        DivideNumber(n / 10);
    }
    Console.WriteLine(n / 10);
}
```

If we call above code with input 274 then output would be: 0,2,27
