Untitled

 avatar
unknown
plain_text
4 years ago
328 B
3
Indexable
#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"); }
					} 
	         }
Editor is loading...