View Code of Problem 77

#include<iostream>
using namespace std;
int main()
{
	int m,q,b,s,g,qyu,byu,syu;
	cin>>m;
	q=m/1000;qyu=m%1000;//990
	b=qyu/100;byu=qyu%100;//90
	s=byu/10;syu=byu%10;//0
	g=syu;
	
	cout<<q<<" "<<b<<" "<<s<<" "<<g<<endl;
	
 } 

Double click to view unformatted code.


Back to problem 77