View Code of Problem 77

#include<stdio.h>
main()
{
	int n,a,b;
	scanf("%d",&n);
	b=1000;
	while(b>1){
		a=n/b;
		n=n%b;
		b=b/10;
		printf("%c ",a+48);
	}
	printf("%c",n+48);
}

Double click to view unformatted code.


Back to problem 77