Advertisement
Sammy24

#489

Apr 5th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. vectorul v de_lungime_n;
  2. variabilele n, i;
  3.  
  4. functia principala
  5. {
  6. citeste n;
  7.  
  8. pentru(i = 1; i <= n; i++)exe
  9. citeste numarul;
  10.  
  11. pentru(i = 1; i <= n / 2; i++)exe
  12. {
  13. scrie elementul_de_pe_pozitia_i;
  14. spatiu;
  15. scrie elementul_de_pe_pozitia_n_minus_i_plus_1;
  16. spatiu;
  17. }
  18.  
  19. daca(n este_impar)exe
  20. {
  21. scrie ce_a_ramas_in_vector_nescris;
  22. }
  23.  
  24. no_ho_ca_am_obosit;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement