Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char napis[20];
- int dl,i;
- printf("Podaj napis ktory ma byc wyswietlony od tylu:");
- fgets(napis,20,stdin);
- dl=strlen(napis)-1;
- printf("wyswietl napis:\n");
- for(i=dl-1;i>=0;i--){
- if(napis[i]==' ') printf("\n"); else
- printf("%c",napis[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement