Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char tekst[20];
- int i=0;
- int n=0;
- printf("Podaj tekst: ");
- scanf("%s", tekst);
- printf("\n");
- while(tekst[i] != 0)
- {
- i++;
- n++;
- }
- for(i=n;i=0;i--){
- printf ("Tekst odwrotny to: %c\n", tekst[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement