Guest User

Untitled

a guest
Jan 15th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <cstdio>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.  
  7.     int pole[10];
  8.    
  9.     for (int i = 0; i < 10; i++)
  10.     {
  11.         pole[i] = 5;
  12.     }
  13.  
  14.     for (int j = 0; j < 10; j++)
  15.     {
  16.         pole[j] = pole[j] * 2;
  17.     }
  18.  
  19.     for (int x=0;x<10 ;x++)
  20.     {
  21.         printf("%d ", pole[x]);
  22.     }
  23.  
  24.     return EXIT_SUCCESS;
  25. }
Add Comment
Please, Sign In to add comment