From 3630bf773cefcdbb227000b239e784be6ab072d9 Mon Sep 17 00:00:00 2001 From: Klaudia Kandulska Date: Wed, 30 May 2018 00:38:04 +0000 Subject: [PATCH] Zadanie nr 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Program napisany w języku c++, skompilowany przy pomocy codeblocks --- Zadanie1.cpp | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Zadanie1.cpp diff --git a/Zadanie1.cpp b/Zadanie1.cpp new file mode 100644 index 0000000..c62da4f --- /dev/null +++ b/Zadanie1.cpp @@ -0,0 +1,96 @@ +#include +#include + + +using namespace std; + +int NWD(int x, int y) +{ + if(y!=0) + return NWD(y,x%y); + return x; +} + +int poteguj(int pod, int wyk) +{ + int w = 1; + for (int i = 0; i> pierscien ; + + cout << "Elementy odwracalne: "; + cout<<"( "; + Elementy_odwracalne(pierscien); + cout << ")" << endl; + + cout << "Dzielniki zera: "; + cout<<"( "; + Dzielniki_zera(pierscien); + cout << ")" << endl; + + cout << "Elementy nilpotentne: "; + cout<<"( "; + Elementy_nilpotentne(pierscien); + cout << ")" << endl; + + cout << "Elementy idempotentne: "; + cout<<"( "; + Elementy_idempotentne(pierscien); + cout << ")" << endl <