View Code of Problem 54

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>

int main(){

	/*
从键盘输入一个长整数,从高位开始逐位分割并输出。
	*/
	
	char a[1000];
	int i = 0;
	gets(a);
	for(i = 0; i < strlen(a) ; i++)
		printf("%c " , a[i] );
	
	return 0;
}	

Double click to view unformatted code.


Back to problem 54