MaxxxxiorS

Na czwórkę 17.03.2021

Mar 17th, 2021
1,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     char tab[4];
  8.     int x = 0, y = 0;
  9.  
  10.     do
  11.     {
  12.         cout << "Wprowadź " << x + 1 << " liczbę: ";
  13.         cin >> tab[x];
  14.         x++;
  15.     } while (x < 4);
  16.  
  17.     do
  18.     {
  19.         cout << tab[y] << endl;
  20.         y++;
  21.     } while (y < 4);
  22.    
  23.    
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment