Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<iomanip>
- #include<cmath>
- #include<algorithm>
- #include <algorithm>
- using namespace std;
- void Ahmed_Negm(){
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- int main()
- {Ahmed_Negm();
- int test;
- cin>>test;
- for(int i = 1; i <= test; i++){
- long long num, digit, rev;
- cin>>num;
- while(num>0){
- digit = num%10;
- cout<<digit<<" ";
- num /= 10;
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement