View Code of Problem 77

#include<stdio.h>
#include <string.h>
#include <math.h>
int main(){
	int x;
	int t;
	int mask;
	mask=1000;
	scanf("%d",&x);
	do{
		int d=x/mask;
		printf("%d",d);
		if(mask>0){
			printf(" ");
		}
		x %=mask;
		mask /=10;
	}while(mask>0);
	printf("\n");
	return 0;
}

Double click to view unformatted code.


Back to problem 77