diff options
Diffstat (limited to 'Semestr 3/pf/lista2/cze.cpp')
-rw-r--r-- | Semestr 3/pf/lista2/cze.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Semestr 3/pf/lista2/cze.cpp b/Semestr 3/pf/lista2/cze.cpp deleted file mode 100644 index da58fa5..0000000 --- a/Semestr 3/pf/lista2/cze.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include <iostream> -using namespace std; - -int tab[1000010]; - -int main() -{ - int wsk = 0; - - while (true) - { - cin >> tab[wsk]; - if (tab[wsk] == -1) - break; - wsk++; - } - - for (int i = 0; i < wsk; i += 2) // i += 2 <=> i = i + 2 - { - cout << tab[i] << " "; - } - cout << "-1\n"; - - for (int i = 1; i < wsk; i += 2) - { - cout << tab[i] << " "; - } - cout << "-1\n"; -}
\ No newline at end of file |