Created
September 16, 2017 15:00
-
-
Save invatainfo/2e4702e1e9c479a28424a380c66fce5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream.h> | |
ofstream f("nr.txt"); | |
void main() { | |
long n; | |
cin >> n; | |
while (n) { | |
f << n << " "; | |
n = n / 10; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment