Advertisement
AzmayenSabil

Untitled

Oct 15th, 2021
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(){
  5.  
  6. int n;
  7. scanf("%d", &n);
  8.  
  9. int arr[n];
  10.  
  11. printf("Give inputs: \n");
  12.  
  13. for(int i=0; i<n; i++){
  14. scanf("%d",arr+i);
  15. }
  16.  
  17. printf("Printing element\n");
  18.  
  19. for(int i=0; i<n; i++){
  20. printf("%d\n", *(arr + i));
  21. }
  22.  
  23. return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement