2 solutions

  • 1
    @ 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;
    }
    
    • -1
      @ 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
      185
      Accepted
      83
      Uploaded By