daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int mc;
  2. char kierunek;
  3.  
  4. printf("\nO ile miejsc chcesz przesunac?: ");
  5. scanf("%d", &mc);
  6.  
  7. printf("\nPrzesunac w lewo, czy w prawo?");
  8. printf("\nPrawo - p , Lewo - l: ");
  9. scanf("%f", &kierunek);
  10.  
  11.  
  12. if(kierunek = "p")
  13. {
  14.     for(j=i-1; j>=0; j--)
  15.     {
  16.         printf("%d",tab[j]);
  17.     }
  18. }
  19. else if(kierunek = "l")
  20. {
  21.      for(j=i-1; j>=0; j--)
  22.     {
  23.         printf("%d",tab[j]);
  24.     }
  25. }
  26. else
  27. {
  28.     printf("\nZ³y wybor");
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top