SHARE
TWEET

Untitled

a guest Oct 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int kiek();
  4. void ivedimas(int Z[], int w);
  5.  void isvedimas(int Z[], int w, string tekstas);
  6. int main()
  7. {
  8.     int   n;
  9.        n=kiek();
  10.     int A[n];
  11.         ivedimas(A, n);
  12.         isvedimas(A, n, "Musu");
  13.  
  14.   //----------------------------------------
  15.  
  16.  
  17.  
  18.  
  19.     return 0;
  20. }
  21.  
  22. int kiek()
  23. {
  24.     int kazkas;
  25.     cout<<"Kiek masyve elementu "; cin>>kazkas;
  26.     return kazkas;
  27. }
  28.  
  29.  
  30. void ivedimas(int Z[], int w)
  31. {
  32.      for(int i=0; i<w; i++){
  33.         cout<<"Z["<<i<<"]= ";
  34.         cin>>Z[i];
  35. }
  36. }
  37.  void isvedimas(int Z[], int w, string tekstas)
  38. {
  39.     cout<<tekstas<<" masyvas \n";
  40.     for(int i=0; i<w; i++){
  41.         cout<<Z[i]<<" ";
  42.     }
  43.     cout<<'\n'<<tekstas<<"  masyvo pabaiga \n";
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top