{"id":5571,"date":"2016-12-23T14:25:12","date_gmt":"2016-12-23T14:25:12","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=5571"},"modified":"2024-12-14T04:15:40","modified_gmt":"2024-12-14T04:15:40","slug":"how-to-find-square-of-given-number-using-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-find-square-of-given-number-using-raptor-flowchart\/","title":{"rendered":"Square of given number using RAPTOR"},"content":{"rendered":"<h1>Square of given number using RAPTOR<\/h1>\n<p>In this tutorial, we will create a RAPTOR flowchart to find the square of a given number using the RAPTOR tool. Let the flowchart prompt the user for the number. Calculate the square of the number and output the result to the console.<\/p>\n<p>We use the Exponentiation operator in RAPTOR. There are two operators for the exponentiation.<\/p>\n<p>^ and **<\/p>\n<p>To find the square of a number we can use this operator.<\/p>\n<p>Example: Different ways to compute the square of a number.<\/p>\n<p>result &lt;- 5 ^ 2<\/p>\n<p>result &lt;- 5 ** 2<\/p>\n<p>result &lt;- 5*5<\/p>\n<h3><\/h3>\n<h3>Pseudo Code<\/h3>\n<p>START<\/p>\n<p>DECLARE result,n<\/p>\n<p>INPUT n<\/p>\n<p>result &lt;- n^2<\/p>\n<p>OUTPUT result<\/p>\n<p>END<\/p>\n<h3>Flowchart<\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5573\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/square-of-number-raptor-flowchart.png\" alt=\"square of number raptor flowchart\" width=\"1310\" height=\"985\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/square-of-number-raptor-flowchart.png 1310w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/square-of-number-raptor-flowchart-300x226.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/square-of-number-raptor-flowchart-1024x770.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/square-of-number-raptor-flowchart-768x577.png 768w\" sizes=\"auto, (max-width: 1310px) 100vw, 1310px\" \/><\/h3>\n<h3>Sample Output:<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5574\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Square-of-number-Flowchart-Output.png\" alt=\"Square of number Flowchart Output\" width=\"1719\" height=\"961\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Square-of-number-Flowchart-Output.png 1719w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Square-of-number-Flowchart-Output-300x168.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Square-of-number-Flowchart-Output-1024x572.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Square-of-number-Flowchart-Output-768x429.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Square-of-number-Flowchart-Output-1536x859.png 1536w\" sizes=\"auto, (max-width: 1719px) 100vw, 1719px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>RAPTOR Tutorial<\/h2>\n<p>Raptor Tutorials on this website can be found at:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Square of given number using RAPTOR In this tutorial, we will create a RAPTOR flowchart to find the square of a given number using the RAPTOR tool. Let the flowchart prompt the user for the number. Calculate the square of the number and output the result to the console. We use the Exponentiation operator in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[208],"class_list":["post-5571","post","type-post","status-publish","format-standard","hentry","category-flowchart","tag-mathematics","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/5571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=5571"}],"version-history":[{"count":11,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/5571\/revisions"}],"predecessor-version":[{"id":26398,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/5571\/revisions\/26398"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=5571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=5571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=5571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}