{"id":126,"date":"2018-02-26T21:12:03","date_gmt":"2018-02-27T02:12:03","guid":{"rendered":"http:\/\/www.news.silkrooster.com\/?page_id=126"},"modified":"2018-02-26T21:12:03","modified_gmt":"2018-02-27T02:12:03","slug":"language-c-net-v-4-0-runtime-required-2","status":"publish","type":"page","link":"http:\/\/www.news.silkrooster.com\/?page_id=126","title":{"rendered":"Language C#, .net v.4.0 runtime required."},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>using System;<br \/>\nnamespace Multiplication_Table_C_sharp<br \/>\n{<br \/>\nclass Program<br \/>\n{<br \/>\nstatic void Main(string&lt;&gt; args)<br \/>\n{<br \/>\n\/\/ multiplication table &#8211; C# CRL version.cpp : main project file.<\/p>\n<p>int row = 0;\/\/ The first variable called row with a value of 0<br \/>\nint column = 0;\/\/Second variable called column with a value of 0<br \/>\nConsole.WriteLine(&#8220;\\t\\t\\tMultiplication Table\\n\\n\\n&#8221;);\/\/we are outputting to the screen via .net framework WriteLine will create a newline<br \/>\nConsole.Write (&#8221; &#8220;);\/\/Write outputs without a newline character<br \/>\nfor (row = 1; row !=11; row++)\/\/The first loop, this will create 1 through 10 across the top of the screen<br \/>\n{<br \/>\nConsole.Write (&#8220;{0,5}&#8221;, row);\/\/First number represents &#8220;row&#8221; and the second number specifies the width.<br \/>\n}<\/p>\n<p>Console.Write (&#8220;\\n &#8220;);\/\/Used Write to introduce spacing after a newline.<br \/>\nfor (row = 1; row !=11; row++)\/\/This loop draws a line under the numbers<br \/>\n{<br \/>\nConsole.Write (&#8220;_____&#8221;);<br \/>\n}<\/p>\n<p>for (row = 1; row != 11; row++)\/\/This outer loop creates the far left number that will run down the screen<br \/>\n{<br \/>\nConsole.Write (&#8220;\\n\\n{0,3} |&#8221;, row);\/\/ outputing two newline characters the number with width of 3 and a | character for a divider line<\/p>\n<p>for (column = 1; column != 11; column++)\/\/This inner loop create the table<br \/>\n{<br \/>\nConsole.Write (&#8220;{0,5}&#8221;, column*row);\/\/here we put the multiple of &#8220;column&#8221; and &#8220;row&#8221; with a width of 5<br \/>\n}<br \/>\n}<br \/>\nConsole.WriteLine(&#8220;\\n\\nHit Enter key to quit&#8230;&#8221;);<br \/>\nConsole.ReadLine();\/\/keeps the screen visible until the enter key is hit.<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; using System; namespace Multiplication_Table_C_sharp { class Program { static void Main(string&lt;&gt; args) { \/\/ multiplication table &#8211; C# CRL version.cpp : main project file. int row = 0;\/\/ The first variable called row with a value of 0 int &hellip; <a href=\"http:\/\/www.news.silkrooster.com\/?page_id=126\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-126","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126"}],"version-history":[{"count":1,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/126\/revisions"}],"predecessor-version":[{"id":127,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/126\/revisions\/127"}],"wp:attachment":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}