View Code of Problem 77

#include<bits/stdc++.h>
using namespace std;

int main(){

int n;
cin>>n;
int a,b,c,d;
a=n/1000;
b=(n/100)%10;
c=(n/10)%10;
d=n%10;
cout<<a<<" "<<b<<" "<<c<<" "<<d;
return 0;
}

Double click to view unformatted code.


Back to problem 77