Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- main()
- {
- char txt[50];
- int n,i;
- n=0;
- printf("Digite uma frase qualquer:");
- gets(txt);
- for(i=0; txt[i] != '\0'; i++)
- {
- if(txt[i] == ' ')
- txt[i]='\n';
- }
- puts(txt);
- system("Pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement