Advertisement
Guest User

Var 5 s3 ex 3

a guest
Nov 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <fstream>
  2. using namespace std;
  3. ofstream g("nr.txt");
  4. int main()
  5. {
  6. int n;
  7. cout<<"n=";
  8. cin >> n;
  9. while (n)
  10. {
  11. g << n << " ";
  12. n = n / 10;
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement