View Code of Problem 77

#include <stdio.h>
int main(){
	void f(int n);
	int n;
	scanf("%d",&n);
	f(n);
}
void f(int n){
	if(n>9){
		f(n/10);
	}
	if(n/1000==0) printf("%c ",n%10+'0');
	else printf("%c",n%10+'0');
}

Double click to view unformatted code.


Back to problem 77