Advertisement
Guest User

N=21

a guest
Feb 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define N 21
  4.  
  5. int summ = 0;;
  6. int result;
  7. int arr[N] = {1655, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 1664, 1665, 1666, 1667, 1668, 1669, 1670, 1671, 1672, 1673, 1674, 1675};
  8.  
  9. int main()
  10. {
  11.     for(int i = 0; i < 16; i=i+1)
  12.     {
  13.         summ = summ + arr[i];
  14.     }
  15.    
  16.     printf("%d", result);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement