fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int count = rand() % 1024 + 2;
  6. int arr[count];
  7. arr[count-1] = 3;
  8. for(int i = 0; i < count; ++i)
  9. {
  10. arr[i] = i * 3;
  11. }
  12. printf("%d %d %d", count - 1, arr[0], arr[count-1]);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4456KB
stdin
Standard input is empty
stdout
360 0 1080