Guest User

Untitled

a guest
Jun 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17.  
  18.  
  19.  
  20. procedure Put_To_With_Commas (
  21. alters Character_OStream& output
  22. );
  23. {
  24. object Integer f;
  25. output.Open_External("");
  26.  
  27.  
  28. self.Multiply_By_Radix(f);
  29. output << f;
  30. if (self.Discrete_Log mod 3 == 0 and self.Discrete_Log > 3)
  31. output << ",";
  32. self.Put_To_With_Commas (output);
  33.  
  34. output.Close_External("");
  35. }
Add Comment
Please, Sign In to add comment