View Code of Problem 50

#include <stdio.h>
int main(int argc, char *argv[]) {
	char str[80],str2[80];
	gets(str);
	int i=0;
	while(str[i]){
		if('9'<str[i]||str[i]<'0'){
			printf("*");
			while(str[i+1]&&('9'<str[i+1]||str[i+1]<'0'))i++;
		}else{
			printf("%c",str[i]);	
		}
		i++;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 50