CotaIgnorada

casilla al revés

Nov 6th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. void inv(char s[]){
  4.      int t;
  5.      for(t=strlen(s)-1; t>=0; t--){
  6.         printf("%c\n", s[t]);
  7.       }
  8. }
  9. int main(){
  10.     char inf[]="Programacion I";
  11.     inv(inf);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment