Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. int main()
  6. {
  7.     int a[10] = {110, -35, 0, -15, -16, 25, 10, -101, 32, -105};
  8.  
  9.    
  10.     for(int i = 0; i < 10; i++)
  11.     {
  12.        
  13.         a[i] = i;
  14.     }
  15.    
  16.     for(int i = 0; i < 10; i++)
  17.     {
  18.        
  19.     printf("a[%d] = %d\n", i, a[i]);
  20.     }
  21.    
  22.    
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement