Advertisement
Guest User

ex 1 tp 8

a guest
Apr 26th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #define repeat(nb) for (int _loop = 1, _max = (nb); _loop <= _max; _loop++)
  3. #define readint(nb) scanf("%d",&nb);
  4. int main()
  5. {
  6. int tableau[3];
  7. int nb=0;
  8. readint(nb);
  9. tableau[0]=1;
  10. tableau[2]=6;
  11. tableau[3]=8;
  12. printf("%d", tableau[nb]);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement