fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the value of n: \n");
  6. scanf("%d",&n);
  7.  
  8. int arr[n];
  9. int sum =0;
  10. for(int i=0;i<n;i++){
  11. scanf("%d",&arr[i]);
  12. }
  13. for(int i=0;i<n;i++){
  14. printf("%d",arr[i]);
  15. }
  16.  
  17.  
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0.01s 5324KB
stdin
3
1
2
3
stdout
Enter the value of n: 
123