{"id":167,"date":"2026-08-28T19:33:19","date_gmt":"2026-08-28T19:33:19","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_ploss\/?p=167"},"modified":"2026-08-28T19:33:19","modified_gmt":"2026-08-28T19:33:19","slug":"8-28-26-free-friday","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_ploss\/2026\/08\/28\/8-28-26-free-friday\/","title":{"rendered":"8-28-26 free friday"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">today i learned about c++ a coding language thats very confusing but here&#8217;s some screenshots and pictures of the code from the practice we did<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cout &lt;&lt; \"\\n############### problem 1 ##################\\n\\n\";\nint number;\ncout &lt;&lt; \"enter a number: \";\ncin >> number;\n\nif (number > 0) {\n\tcout &lt;&lt; \"the number is positive\" &lt;&lt; endl;\n}\n\nif (number &lt; 0) {\n\tcout &lt;&lt; \"the number is negatived\" &lt;&lt; endl;\n}\n\nelse if(number == 0) {\n\tcout &lt;&lt; \"the number is 0\" &lt;&lt; endl;\n}\n\ncout &lt;&lt; \"\\n############### problem 2 ##################\\n\\n\";\nint score;\ncout &lt;&lt; \"enter the score: \";\ncin >> score;\nif (score >= 60) {\n\tcout &lt;&lt; \"you passed\" &lt;&lt; endl;\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"492\" src=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/08\/image.png\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/08\/image.png 803w, https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/08\/image-300x184.png 300w, https:\/\/theroyalscode.com\/students\/a_ploss\/wp-content\/uploads\/2026\/08\/image-767x470.png 767w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">here&#8217;s a lil bit of the code from the c++ code where itll ask the user to place a number and tell you if the number is positive or negative while the 2nd one asks the user to place a score and itll tell you if you passed or failed based on the number given<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">but yea today we learned c++ coding language and used the else if statements and used them in the code shown above<\/p>\n","protected":false},"excerpt":{"rendered":"<p>today i learned about c++ a coding language thats very confusing but here&#8217;s some screenshots and pictures of the code from the practice we did here&#8217;s a lil bit of the code from the c++ code where itll ask the user to place a number and tell you if the number is positive or negative [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-free-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/posts\/167\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_ploss\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}