Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define N 15
  4. int main()
  5. {
  6. int tab[N];
  7. int i;
  8. for(i=0; i<N; ++i){
  9. tab[i] = i+1;
  10.  
  11. printf("%d\n", tab[i]);
  12. }
  13. printf("%d, %d, %d\n", tab[0], tab[1], tab[14]);
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement