fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a[] = {0, 1, 2, 3, 4, 5};
  5. int b;
  6. scanf("%d", &b);
  7. printf("%d", a[b]);
  8. return 0;
  9. }
  10. /* end */
  11.  
Success #stdin #stdout 0s 4500KB
stdin
3
stdout
3