Advertisement
lukii1231

tablice auto wypelnianie i wyswietlanie

Mar 6th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. int main() {
  14.  
  15. int tablica1[6] ;
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. for(int i=0; i<6; i++)
  29. {
  30. cout<<"podaj element tablicy: " ;
  31. cin>> tablica1[i];
  32.  
  33. }
  34.  
  35.  
  36.  
  37.  
  38. for(int i=0; i<6; i++)
  39. {
  40. cout<< tablica1[i];
  41. cout<< " ";
  42. }
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. return 0;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement