webturing %!s(int64=4) %!d(string=hai) anos
pai
achega
40450b89a8
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      B.cpp

+ 17 - 0
B.cpp

@@ -0,0 +1,17 @@
+#include<bits/stdc++.h>
+using namespace std;
+void Print(int n) {
+    if (n < 10) {
+        cout << n << " ";
+        return ;
+    }
+    Print(n / 10);
+    cout << n % 10 << " ";
+}
+int main() {
+    int n;
+    cin >> n;
+    Print(n);
+    return 0;
+}
+