3 solutions

  • 5
    @ 2025-11-16 18:51:09
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;cin>>n;
    	while(n!=0)
    	{
    		int ge=n%10;
    		cout<<ge<<" ";
    		n/=10;
    	}
    	return 0;
    }
    
    • 0
      @ 2026-3-21 13:42:48

      789113

      • 0
        @ 2024-11-30 20:51:03

        #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; do { cout<<n%10<<" "; n/=10; }while(n); return 0; }

        • 1

        Information

        ID
        867
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        208
        Accepted
        94
        Uploaded By