{"id":188,"date":"2021-09-14T08:25:23","date_gmt":"2021-09-14T06:25:23","guid":{"rendered":"https:\/\/informatykachelm.pl\/?p=188"},"modified":"2021-09-14T08:25:25","modified_gmt":"2021-09-14T06:25:25","slug":"wektory-zadania","status":"publish","type":"post","link":"https:\/\/informatykachelm.pl\/?p=188","title":{"rendered":"Wektory &#8211; zadania"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>1. Zainicjalizuj wektor 1000 elementowy 0 lub 1<\/p>\n\n\n\n<p>2. Sprawd\u017a, ile w wektorze jest liczb parzystych<\/p>\n\n\n\n<p>3. Policz, ile w wektorze jest liczb podzielnych przez jak\u0105\u015b liczb\u0119 (np 3)<\/p>\n\n\n\n<p>4. Sprawd\u017a, ile wyraz\u00f3w w wektorze ko\u0144czy si\u0119 na literk\u0119 a<\/p>\n\n\n\n<p>5. Sprawd\u017a ile wyraz\u00f3w w wektorze ko\u0144czy si\u0119 na sp\u00f3\u0142g\u0142osk\u0119<\/p>\n\n\n\n<p>6. Oblicz sum\u0119 wszystkich element\u00f3w w wektorze<\/p>\n\n\n\n<p>7. U\u017cytkownik podaje liczby, a\u017c do podania 0. Wszystkie liczby trzeba zapisa\u0107 do wektora oraz policzy\u0107 ich \u015bredni\u0105<\/p>\n\n\n\n<p>8. U\u017cytkownik podaje liczby, zapisujemy je do wektora, u\u017cytkownik podaje je tak d\u0142ugo a\u017c natrafi na liczb\u0119 z dwoma zerami na ko\u0144cu. Nast\u0119pnie wypisuje liczby<\/p>\n\n\n\n<p>9. Wygeneruj do wektora 1000 liczb naturalnych od 0 do 1000. Sprawd\u017a czy znajduje si\u0119 tam liczba pierwsza. Program ma zwraca\u0107 1 albo 0<\/p>\n\n\n\n<p>10. Program pobiera od u\u017cytkownika n ocen i oblicza ich \u015bredni\u0105. Wynik podaje z dwoma miejscami po przecinku<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-kp2","entry"],"_links":{"self":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":1,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/informatykachelm.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}