Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 09 / task3.cpp
diff options
context:
space:
mode:
1 files changed, 10 insertions, 0 deletions
-rw-r--r--pract_SI/Pract. 09/task3.cpp10
diff --git a/pract_SI/Pract. 09/task3.cpp b/pract_SI/Pract. 09/task3.cpp
new file mode 100644
index 0000000..baf8da0
--- /dev/null
+++ b/pract_SI/Pract. 09/task3.cpp
@@ -0,0 +1,10 @@
+#include <iostream>
+
+void reversedNumber(int n)
+{
+ if(n == 0)
+ return;
+
+ std::cout << n % 10;
+ return reversedNumber(n / 10);
+}