Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //200675981 avi bechavod
- #include <stdio.h>
- #include <stdlib.h>
- #define TRUE 1
- #define FALSE 0
- int main()
- {
- int c_flag=TRUE;
- int count=0;
- char a;
- if(c_flag==FALSE){
- a=getchar();
- if(a == ' '){
- c_flag=TRUE;
- }
- }
- else if(c_flag==TRUE){
- while(a!=EOF){
- count++;
- a=getchar();
- printf("%c",a);
- if(a == ' '){
- count =0;
- printf("\n");
- }
- else if(count>4){
- count=0;
- printf("\n");
- c_flag=FALSE;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement