From c5fcf7179a83ef65c86c6a4a390029149e518649 Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Tue, 5 Oct 2021 21:49:54 +0200 Subject: Duzy commit ze smieciami --- semestr-3/pf/lista2/test.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 semestr-3/pf/lista2/test.cpp (limited to 'semestr-3/pf/lista2/test.cpp') 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 + +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