View Code of Problem 77

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

Double click to view unformatted code.


Back to problem 77