Guest User

Untitled

a guest
Oct 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3.  
  4.  
  5. void ispis(char a[],int j){
  6.  
  7. int i,k;
  8.  
  9. for(i=j;i>=0;i--){
  10.     for(k=i;k>0;k--){
  11.      printf(" ");}
  12.       printf("%c\n",a[i]);
  13. }
  14. }
  15.  
  16. int main(){
  17.  
  18. char a[80];
  19. int i,j;
  20.  
  21. gets(a);
  22.  
  23. j=strlen(a);
  24. ispis(a,j);
  25.  
  26.  
  27. return 0;
  28. }
Add Comment
Please, Sign In to add comment