Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. while (x > 11) x -= 11;
  2. while (x < 0) x += 11;
  3.  
  4. #include <stdio.h>
  5.  
  6. int main(){
  7. for (int i = -23;i<23;i++) printf("%d %dn",i,i%11);
  8. return 0;
  9. }
  10.  
  11. -23 -1
  12. -22 0
  13. -21 -10
  14. -20 -9
  15. -19 -8
  16. -18 -7
  17. -17 -6
  18. -16 -5
  19. -15 -4
  20. -14 -3
  21. -13 -2
  22. -12 -1
  23. -11 0
  24. -10 -10
  25. -9 -9
  26. -8 -8
  27. -7 -7
  28. -6 -6
  29. -5 -5
  30. -4 -4
  31. -3 -3
  32. -2 -2
  33. -1 -1
  34. 0 0
  35. 1 1
  36. 2 2
  37. 3 3
  38. 4 4
  39. 5 5
  40. 6 6
  41. 7 7
  42. 8 8
  43. 9 9
  44. 10 10
  45. 11 0
  46. 12 1
  47. 13 2
  48. 14 3
  49. 15 4
  50. 16 5
  51. 17 6
  52. 18 7
  53. 19 8
  54. 20 9
  55. 21 10
  56. 22 0
Add Comment
Please, Sign In to add comment