View Code of Problem 77

#include<stdio.h>
int main(){
//	int n;
//	int a,b,c,d;
//	scanf("%d",&n);
//	a=n/1000;
//	n=n%1000;
//	b=n/100;
//	n=n%100;
//	c=n/10;
//	d=n%10;
//	printf("%d %d %d %d",a,b,c,d);
	char num[4];
	scanf("%s",num);
	for(int i=0;i<4;i++){
		printf("%c",num[i]);
		if(i!=3)
			printf(" ");
	}
} 

Double click to view unformatted code.


Back to problem 77