<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>C++ by </title>
      <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2022-09-19 08:13:46 UTC</pubDate>
      <lastBuildDate>2022-11-07 10:23:48 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Operacje na liczbach + wybór</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2302597331</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; float a, b;<br>&nbsp; &nbsp; int wybor;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj pierwsza liczbe: ";<br>&nbsp; &nbsp; cin &gt;&gt; a;<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj druga liczbe: ";<br>&nbsp; &nbsp; cin &gt;&gt; b;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Ktore dzialanie chcesz wykonac?" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "+++++++++++++++++++++++++++++++" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "1. Dodawanie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "2. Odejmowanie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "3. Mnozenie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "4. Dzielenie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "+++++++++++++++++++++++++++++++" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Twoj wybor: ";<br>&nbsp; &nbsp; cin &gt;&gt; wybor;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; if (wybor == 1) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Suma: " &lt;&lt; a &lt;&lt; "+" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a+b;&nbsp; &nbsp;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; else if (wybor == 2) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Roznica: " &lt;&lt; a &lt;&lt; "-" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a-b;&nbsp;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; else if (wybor == 3) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Iloczyn: " &lt;&lt; a &lt;&lt; "x" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a*b;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; else if (wybor == 4) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Iloraz: " &lt;&lt; a &lt;&lt; ":" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a/b;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; else {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; "Niepoprawny wybor.";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-19 08:16:49 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2302597331</guid>
      </item>
      <item>
         <title>Switch - działania na liczbach</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2302609553</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; float a, b;<br>&nbsp; &nbsp; int wybor;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj pierwsza liczbe: ";<br>&nbsp; &nbsp; cin &gt;&gt; a;<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj druga liczbe: ";<br>&nbsp; &nbsp; cin &gt;&gt; b;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Ktore dzialanie chcesz wykonac?" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "+++++++++++++++++++++++++++++++" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "1. Dodawanie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "2. Odejmowanie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "3. Mnozenie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "4. Dzielenie" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "+++++++++++++++++++++++++++++++" &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Twoj wybor: ";<br>&nbsp; &nbsp; cin &gt;&gt; wybor;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; switch (wybor)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; case 1:<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Suma: " &lt;&lt; a &lt;&lt; "+" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a+b;<br>&nbsp; &nbsp; &nbsp; &nbsp; break;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; case 2:<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Roznica: " &lt;&lt; a &lt;&lt; "-" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a-b;<br>&nbsp; &nbsp; &nbsp; &nbsp; break;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; case 3:<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Iloczyn: " &lt;&lt; a &lt;&lt; "x" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a*b;<br>&nbsp; &nbsp; &nbsp; &nbsp; break;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; case 4:<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Iloraz: " &lt;&lt; a &lt;&lt; ":" &lt;&lt; b &lt;&lt; "=" &lt;&lt; a/b;<br>&nbsp; &nbsp; &nbsp; &nbsp; break;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; default:<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; "Niepoprawny wybor.";<br>&nbsp; &nbsp; &nbsp; &nbsp; break;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-19 08:27:03 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2302609553</guid>
      </item>
      <item>
         <title>Objętość i pole powierzchni walca</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2302663783</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;conio.h&gt;<br>#include &lt;math.h&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; float r, h;<br>&nbsp; &nbsp; float pi = M_PI;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj dlugosc promienia: ";<br>&nbsp; &nbsp; cin &gt;&gt; r;<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj wysokosc walca: ";<br>&nbsp; &nbsp; cin &gt;&gt; h;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Objetosc: πr²h = " &lt;&lt; pi &lt;&lt; " x " &lt;&lt; r &lt;&lt; "² x "&lt;&lt; h &lt;&lt; " = " &lt;&lt; pi*r*r*h &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Pole powierzchni: 2πr²+2πrh = 2 x " &lt;&lt; pi &lt;&lt; " x " &lt;&lt; r &lt;&lt; "² + 2 x " &lt;&lt; pi &lt;&lt; " x " &lt;&lt; r &lt;&lt; " x " &lt;&lt; h &lt;&lt; " = " &lt;&lt; 2*pi*r*r+2*pi*r*h &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-19 09:13:33 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2302663783</guid>
      </item>
      <item>
         <title>Odczytanie zawartości pliku</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2313232358</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;string&gt;<br>#include &lt;fstream&gt;<br>#include &lt;cstdlib&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; string linia;<br>&nbsp; &nbsp; fstream plik;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; plik.open("plik.txt", ios::in);<br>&nbsp; &nbsp; if(plik.good() == true)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; while(!plik.eof())<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getline(plik, linia);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; linia &lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; plik.close();<br>&nbsp; &nbsp; }<br>return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-26 08:26:54 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2313232358</guid>
      </item>
      <item>
         <title>Zapis do pliku</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2313233642</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cmath&gt;<br>#include&lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>double r, H, pole, objetosc;<br><br>cout&lt;&lt; "Podaj promien walca: ";<br>cin &gt;&gt; r;<br>cout&lt;&lt; "Podaj wysokosc walca: ";<br>cin &gt;&gt; H;<br>cout&lt;&lt; M_PI&lt;&lt; endl;<br>pole=2*M_PI*r*r+2*M_PI*r*H;<br>objetosc = M_PI*r*r*H;<br>cout &lt;&lt; "pole walca wynosi "&lt;&lt; pole&lt;&lt;endl;<br>cout &lt;&lt; "Objetosc walca wynosi "&lt;&lt; objetosc&lt;&lt;endl;<br><br><br>ofstream zapis("dane.txt", ios::app);<br>zapis &lt;&lt; "pole walca o promieniu " &lt;&lt; r&lt;&lt; " i wysokosci "&lt;&lt; H &lt;&lt; " wynosi "&lt;&lt; pole&lt;&lt;endl;<br>zapis &lt;&lt; "Objetosc walca o promieniu " &lt;&lt; r&lt;&lt; " i wysokosci "&lt;&lt; H &lt;&lt; " wynosi "&lt;&lt; objetosc&lt;&lt;endl;<br>zapis &lt;&lt; endl;<br>zapis.close();<br><br>return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-26 08:28:00 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2313233642</guid>
      </item>
      <item>
         <title>Odczytanie liczby</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2313294355</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; int liczba[2];<br>&nbsp; &nbsp; ifstream plik("plik.txt");<br>&nbsp; &nbsp; for(int i=0; i&lt;2; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; plik &gt;&gt; liczba[i];<br><br>&nbsp; &nbsp; for(int i=0; i&lt;2; i++)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; liczba[i] &lt;&lt; " ";<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "\n";<br>&nbsp; &nbsp; }<br>return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-26 09:15:35 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2313294355</guid>
      </item>
      <item>
         <title>Odczyt i zapis danych w plikach</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344893756</link>
         <description><![CDATA[<div>#include &lt;fstream&gt;<br>#include &lt;iostream&gt;<br>#include &lt;stdio.h&gt;<br>#include &lt;math.h&gt;<br>&nbsp;<br>using namespace std;<br>&nbsp;<br>int main()<br>&nbsp;<br>{<br>&nbsp; &nbsp; float h,r;<br>&nbsp; &nbsp; int dzialanie;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; ifstream odczytanie("pomiary.txt");<br>&nbsp; &nbsp; odczytanie &gt;&gt;h;<br>&nbsp; &nbsp; odczytanie &gt;&gt;r;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Wysokosc wynosi: " &lt;&lt;h &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Promien wynosi: " &lt;&lt;r &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Liczba pi: "&lt;&lt; M_PI&lt;&lt;endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Pole całkowite to: " &lt;&lt; 2*M_PI*(r+h)&lt;&lt;endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Objętość to: "&lt;&lt; M_PI*r*r*h &lt;&lt;endl;<br>&nbsp; &nbsp; // cout &lt;&lt; pow(r,2); &lt;-- komenda na potęge<br>&nbsp;<br>&nbsp;ofstream zapis("dane.txt",ios::app);<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Pole walca o promieniu " &lt;&lt; r &lt;&lt; " i wysokości " &lt;&lt; h &lt;&lt; " wynosi pole: " &lt;&lt; 2*M_PI*(r+h) &lt;&lt;endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Objętość walca o promieniu "&lt;&lt; r &lt;&lt; " i wysokosci " &lt;&lt; h &lt;&lt; " wynosi objetość: "&lt;&lt; M_PI*r*r*h &lt;&lt;endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis.close();<br>&nbsp;<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-18 10:59:37 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344893756</guid>
      </item>
      <item>
         <title>Odczyt/zapis ćw1</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344913073</link>
         <description><![CDATA[<div>#include &lt;fstream&gt;<br>#include &lt;iostream&gt;<br>#include &lt;stdio.h&gt;<br>#include &lt;math.h&gt;<br>&nbsp;<br>using namespace std;<br>&nbsp;<br>int main()<br>&nbsp;<br>{<br>&nbsp; &nbsp; float r1,r2;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; ifstream odczytanie("promienie.txt");<br>&nbsp; &nbsp; odczytanie &gt;&gt;r1;<br>&nbsp; &nbsp; odczytanie &gt;&gt;r2;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Pierwszy promien wynosi: " &lt;&lt;r1 &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Drugi promien wynosi: " &lt;&lt;r2 &lt;&lt; endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Liczba pi: "&lt;&lt; M_PI&lt;&lt;endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Pole pierwszego kola: " &lt;&lt; M_PI*(r1*r1)&lt;&lt;endl;<br>&nbsp; &nbsp; cout &lt;&lt; "Pole drugiego kola: " &lt;&lt; M_PI*(r2*r2)&lt;&lt;endl;<br>&nbsp;<br>&nbsp;ofstream zapis("wynik.txt",ios::app);<br>&nbsp; &nbsp; if (r1&gt;r2){<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Pole wiekszego kola o promieniu " &lt;&lt; r1 &lt;&lt; " wynosi: " &lt;&lt; M_PI*(r1*r1)&lt;&lt;endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Pole mniejszego kola o promieniu " &lt;&lt; r2 &lt;&lt; " wynosi: " &lt;&lt; M_PI*(r2*r2)&lt;&lt;endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis.close();}<br>&nbsp; &nbsp; &nbsp; &nbsp; else{<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Pole wiekszego kola o promieniu " &lt;&lt; r2 &lt;&lt; " wynosi: " &lt;&lt; M_PI*(r2*r2)&lt;&lt;endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Pole mniejszego kola o promieniu " &lt;&lt; r1 &lt;&lt; " wynosi: " &lt;&lt; M_PI*(r1*r1)&lt;&lt;endl;&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis.close();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp;<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-18 11:18:36 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344913073</guid>
      </item>
      <item>
         <title>ćw 2</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344927681</link>
         <description><![CDATA[<div>#include &lt;fstream&gt;<br>#include &lt;iostream&gt;<br>#include &lt;stdio.h&gt;<br>#include &lt;math.h&gt;<br>&nbsp;<br>using namespace std;<br>&nbsp;<br>int main()<br>&nbsp;<br>{<br>&nbsp; &nbsp; int a,b,h;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; ifstream odczytanie("dane.txt");<br>&nbsp; &nbsp; odczytanie &gt;&gt;a;<br>&nbsp; &nbsp; odczytanie &gt;&gt;b;<br>&nbsp; &nbsp; odczytanie &gt;&gt;h;<br><br>&nbsp;<br>&nbsp;ofstream zapis("pole.txt",ios::app);<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; "Pole trapezu wynosi: " &lt;&lt; (a+b)*h/2;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis.close();<br>&nbsp;<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-18 11:31:23 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344927681</guid>
      </item>
      <item>
         <title>ćw 3</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344949684</link>
         <description><![CDATA[<div>#include &lt;fstream&gt;<br>#include &lt;iostream&gt;<br>#include &lt;stdio.h&gt;<br>#include &lt;math.h&gt;<br>&nbsp;<br>using namespace std;<br>&nbsp;<br>int main()<br>&nbsp;<br>{<br>&nbsp; &nbsp; int l1,l2,l3,l4,l5;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; ifstream odczytanie("dane.txt");<br>&nbsp; &nbsp; odczytanie &gt;&gt;l1;<br>&nbsp; &nbsp; odczytanie &gt;&gt;l2;<br>&nbsp; &nbsp; odczytanie &gt;&gt;l3;<br>&nbsp; &nbsp; odczytanie &gt;&gt;l4;<br>&nbsp; &nbsp; odczytanie &gt;&gt;l5;<br><br>&nbsp;<br>&nbsp;ofstream zapis("wynik.txt",ios::app);<br>&nbsp; &nbsp; if (l1%10==0 || l1%10==3 || l1%10==8 || l1%10==9)<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; l1;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; if (l2%10==0 || l2%10==3 || l2%10==8 || l2%10==9)<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; l2;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; if (l3%10==0 || l3%10==3 || l3%10==8 || l3%10==9)<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; l3;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; if (l4%10==0 || l4%10==3 || l4%10==8 || l4%10==9)<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; l4;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp; if (l5%10==0 || l5%10==3 || l5%10==8 || l5%10==9)<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; l5;<br>&nbsp; &nbsp; &nbsp; &nbsp; zapis &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; zapis.close();&nbsp;<br>&nbsp;<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-18 11:49:04 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2344949684</guid>
      </item>
      <item>
         <title>Wczytanie 500 liczb + tablica</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2350398539</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; int tab[500];<br>&nbsp; &nbsp; int j=0;<br>&nbsp; &nbsp; int licznik=0;<br>&nbsp; &nbsp; ifstream liczby("dane.txt");<br>&nbsp; &nbsp; &nbsp; &nbsp; if(!liczby){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Nie mozna otworzyc pliku";<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 1;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; while(!liczby.eof()){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; liczby &gt;&gt; tab[j++];<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; liczby.close();<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; for (int i=0;i&lt;500;i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(tab[i]%2==0){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; tab[i] &lt;&lt; " jest parzysta"&lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; licznik++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; tab[i] &lt;&lt; " nie jest parzysta"&lt;&lt; endl;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Liczb parzystych jest: " &lt;&lt; licznik;<br><br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-21 08:54:14 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2350398539</guid>
      </item>
      <item>
         <title>Czy liczba jest potega 3? 500 liczb</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2350424055</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; int tab[500];<br>&nbsp; &nbsp; int licznik=0;<br>&nbsp; &nbsp; int j=0;<br>&nbsp; &nbsp; int potega;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; ifstream liczby("dane.txt");<br>&nbsp; &nbsp; while(!liczby.eof()){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; liczby &gt;&gt; tab[j++];}<br>&nbsp; &nbsp; liczby.close();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; for (int i=0;i&lt;500;i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; potega=1;<br>&nbsp; &nbsp; while(potega&lt;=tab[i]){<br>&nbsp; &nbsp; &nbsp; &nbsp; if (potega==tab[i]){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; licznik++;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; potega=potega*3;<br>&nbsp; &nbsp; }}<br>&nbsp; &nbsp; cout &lt;&lt; licznik;<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-21 09:19:05 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2350424055</guid>
      </item>
      <item>
         <title>Wybranie z tablicy [x][y], odczyt z pliku</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2360383142</link>
         <description><![CDATA[<ol><li>#include &lt;iostream&gt;<br><br></li><li>#include &lt;fstream&gt;<br><br></li><li>&nbsp;</li><li>using namespace std;<br><br></li><li>&nbsp;</li><li>int main()<br><br></li><li>{<br><br></li><li>&nbsp; &nbsp; int tab[12][320];<br><br></li><li>&nbsp; &nbsp; ifstream plik;<br><br></li><li>&nbsp; &nbsp; plik.open("przyklad.txt");<br><br></li><li>&nbsp;</li><li>&nbsp; &nbsp; if(!plik.is_open()){}<br><br></li><li>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0; i&lt;12; i++){<br><br></li><li>&nbsp; &nbsp; &nbsp; &nbsp; for(int j=0; j&lt;320; j++){<br><br></li><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; plik &gt;&gt; tab[i][j];}<br><br></li><li>&nbsp; &nbsp; }<br><br></li><li>&nbsp; &nbsp; cout &lt;&lt; tab[9][9];<br><br></li><li>&nbsp; &nbsp; return 0;<br><br></li><li>}</li></ol><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-10-28 09:24:21 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2360383142</guid>
      </item>
      <item>
         <title>Rozkład liczby na czynniki</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2372778161</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; int liczba, d;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj liczbe: ";<br>&nbsp; &nbsp; cin &gt;&gt; liczba;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Rozklad tej liczby na czynniki pierwsze:";<br>&nbsp; &nbsp; d = 2;<br>&nbsp; &nbsp; while(liczba&gt;1){<br>&nbsp; &nbsp; &nbsp; &nbsp; while(liczba%d==0){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; d;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; liczba = liczba/d;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; d+=1;<br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-07 09:54:05 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2372778161</guid>
      </item>
      <item>
         <title>Rozkład liczby na czynniki + ilosc nieparzystych</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2372801969</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; int liczba, d;<br>&nbsp; &nbsp; int licz=0;<br>&nbsp; &nbsp; cout &lt;&lt; "Podaj liczbe: ";<br>&nbsp; &nbsp; cin &gt;&gt; liczba;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; "Rozklad tej liczby na czynniki pierwsze:";<br>&nbsp; &nbsp; d = 2;<br>&nbsp; &nbsp; while(liczba&gt;1){<br>&nbsp; &nbsp; &nbsp; &nbsp; while(liczba%d==0){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; d;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; liczba = liczba/d;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(d!=2){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; licz++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; d+=1;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; "Liczb nieparzystych: " &lt;&lt; licz;<br><br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-07 10:13:28 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2372801969</guid>
      </item>
      <item>
         <title>Wczytanie liczb</title>
         <author>non3ym1</author>
         <link>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2372813503</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;fstream&gt;<br><br>using namespace std;<br><br>int main()<br>{<br>&nbsp; &nbsp; int liczba[999], d;<br>&nbsp; &nbsp; int licz=0;<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; ifstream liczby("liczby.txt");<br>&nbsp; &nbsp; for(int i=0;i&lt;=999;i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; liczby &gt;&gt; liczba[i];<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; liczba[999];<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;<br><br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-07 10:23:39 UTC</pubDate>
         <guid>https://padlet.com/non3ym1/1c1b09ibc3rc6148/wish/2372813503</guid>
      </item>
   </channel>
</rss>
