#include<fstream.h> ofstream f("nr.txt"); void main() { long n; cin>>n; while(n) { f<<n<<" "; n=n/10; } }