Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
328 B
1
Indexable
Never
#include<stdio.h>
int main(){

		char A[1000];
		gets(A);
		int k=0;
		while(A[k]!='\0'){++k;}
for(int t=0;t<=k;t++){
        if(A[t]==32&&t==0){
		while(A[t]==32){++t;}
		                         }
    printf("%c",A[t]);
	if(A[t]==32&&A[t+1]!=32&&A[t+1]!='\0'){
	             	printf("\n"); }
					} 
	         }