View Code of Problem 77

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

Double click to view unformatted code.


Back to problem 77