aboutsummaryrefslogtreecommitdiff
path: root/Semestr 3/pf/lista2/test.cpp
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-02-25 14:42:55 +0100
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-02-25 14:42:55 +0100
commit9477dbe667f250ecd23f8fc0d56b942191526421 (patch)
treea4b50c9a726f415f835f5311c11c5d66e95f688c /Semestr 3/pf/lista2/test.cpp
parent1968c1e590077bd51844eacfac722d7963848cb8 (diff)
Stare semestry, niepoukladane
Diffstat (limited to 'Semestr 3/pf/lista2/test.cpp')
-rw-r--r--Semestr 3/pf/lista2/test.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/Semestr 3/pf/lista2/test.cpp b/Semestr 3/pf/lista2/test.cpp
new file mode 100644
index 0000000..59d0a45
--- /dev/null
+++ b/Semestr 3/pf/lista2/test.cpp
@@ -0,0 +1,27 @@
+#include <iostream>
+
+using namespace std;
+int tab[100];
+int main()
+{
+ int x,n,j;
+ for(int i=0;i<=1000;i++)
+ {
+ cin>>x;
+ if(x==-1)
+ {
+ break;
+ }
+ tab[x]++;
+ }
+ for(int i=0;i<=100;i++)
+ {
+ j=0;
+ while(j<tab[i]){
+ cout<<i<<" ";
+ j++;
+ }
+
+ }
+ return 0;
+} \ No newline at end of file