Hello everyone! Here I have a code which should take an input from a file input.txt, for example an integer like 123456 and then using this recursion it should display the result to the output file o.txt which should be:
6
5
4
3
2
1
like this. It somehow works perfectly if in 12 line I use cout instead of fout, and display the result on the screen instead of the output file. Why is that?