<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0"><id>tag:blogger.com,1999:blog-1945920225383659199</id><updated>2024-09-02T06:47:47.430+05:30</updated><category term="Pattern Programming"/><category term="Number Pattern"/><category term="Matrices and Determinants"/><category term="Basic Concepts"/><category term="Type of Matrix"/><category term="Array Example"/><category term="Transpose of Matrix"/><category term="Random Class"/><category term="Star Pattern"/><title type="text">Zero C#</title><subtitle type="html">Everything About C-sharp.....</subtitle><link href="http://zeroc-sharp.blogspot.com/feeds/posts/default" rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default?redirect=false" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/" rel="alternate" type="text/html"/><link href="http://pubsubhubbub.appspot.com/" rel="hub"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default?start-index=26&amp;max-results=25&amp;redirect=false" rel="next" type="application/atom+xml"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><generator uri="http://www.blogger.com" version="7.00">Blogger</generator><openSearch:totalResults>63</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-6923873294132630579</id><published>2015-04-07T16:25:00.000+05:30</published><updated>2015-04-07T16:25:00.489+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Lower Triangular matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to print the lower triangular matrix.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white; color: #073763; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;To print the Lower Triangle of the matrix first of all take the order of matrix it must be square, so, number of row and column oh the matrix is same, after that enter the element of the matrix after that print the matrix on the console.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #073763; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;b&gt;&lt;span style="color: #741b47;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #073763; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;LowTrn&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;in&amp;nbsp;Matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nLower&amp;nbsp;triangle&amp;nbsp;of&amp;nbsp;Matrix&amp;nbsp;A:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;(row&amp;nbsp;&amp;lt;&amp;nbsp;col)?&amp;nbsp;0&amp;nbsp;:&amp;nbsp;matA[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;Logic:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;(row&amp;nbsp;&amp;lt;&amp;nbsp;col)?&amp;nbsp;0&amp;nbsp;:&amp;nbsp;matA[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;In the above, if the number of column is greater than the row than 0 will be print other wise element of the matrix remain same as it is.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLD_ACLrJpaa-InnXDk3HVxXMLqHBrEyfOzj2cCHK8yNTHZPxfwxwx5bGe05RrhE845ic-eGMQusIx6oOVvNc-MDl1y1SywmhDeFdqQgnxvE3rpNLWzlgX6ooI0F6mQGWf_bwV1tPTDqk/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="image of Lower triangle of matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLD_ACLrJpaa-InnXDk3HVxXMLqHBrEyfOzj2cCHK8yNTHZPxfwxwx5bGe05RrhE845ic-eGMQusIx6oOVvNc-MDl1y1SywmhDeFdqQgnxvE3rpNLWzlgX6ooI0F6mQGWf_bwV1tPTDqk/s1600/1.png" height="346" title="Lower triangle of matrix" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="color: #4c1130; font-family: Verdana, sans-serif; font-size: small;"&gt;Lower triangle of matrix&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;Read Also:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/04/upper-triangular-matrix.html" target="_blank"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Upper Triangle of a matrix&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/04/lower-triangular-matrix.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/6923873294132630579" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/6923873294132630579" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/04/lower-triangular-matrix.html" rel="alternate" title="Lower Triangular matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLD_ACLrJpaa-InnXDk3HVxXMLqHBrEyfOzj2cCHK8yNTHZPxfwxwx5bGe05RrhE845ic-eGMQusIx6oOVvNc-MDl1y1SywmhDeFdqQgnxvE3rpNLWzlgX6ooI0F6mQGWf_bwV1tPTDqk/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-5041254241168159158</id><published>2015-04-06T15:59:00.003+05:30</published><updated>2015-04-06T15:59:34.096+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Upper triangular matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to print the upper triangular matrix.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;To print the upper triangle matrix first of all take the order of matrix it must be square, so, number of row and column oh the matrix is same, after that enter the element of the matrix after that print the matrix on the console.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;UprTrn&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;in&amp;nbsp;Matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nUpper&amp;nbsp;triangle&amp;nbsp;of&amp;nbsp;Matrix&amp;nbsp;A:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;(row&amp;lt;=col)?&amp;nbsp;matA[row,col]&amp;nbsp;:&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;Console.Write(&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; font-family: Consolas, 'Courier New', Courier, mono, serif; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;span style="background-color: inherit; color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #cc0000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #cc0000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;Logic:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;span style="line-height: 14px;"&gt;To print the upper triangular matrix we check the no. of current row and column is the no. of current row is greater that the no. of column than 0 will be printed other wise matrix remain as it is.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #cc0000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;(row&amp;lt;=col)?&amp;nbsp;matA[row,col]&amp;nbsp;:&amp;nbsp;0;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0a3_I02g9YEptl-qLSPmQPQZbchkmRgu5BfgmivuWDgnr1WTwBs_6G3BOG7VBQyO0KqMenpDbGECcDmrqPnQdycfJpvJPpa4wvvekite_M9a5Tol23xNCYo1Wmteq-1OefpA5IDPM-cs/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;span style="color: #4c1130;"&gt;&lt;img alt="Image of upper triangular matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0a3_I02g9YEptl-qLSPmQPQZbchkmRgu5BfgmivuWDgnr1WTwBs_6G3BOG7VBQyO0KqMenpDbGECcDmrqPnQdycfJpvJPpa4wvvekite_M9a5Tol23xNCYo1Wmteq-1OefpA5IDPM-cs/s1600/1.png" height="334" title="upper triangular matrix" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="color: #4c1130; font-family: Verdana, sans-serif; font-size: small;"&gt;Upper triangular matrix&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Read Also:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/04/largest-element-in-matrix.html" target="_blank"&gt;Largest element in Matrix&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2015/04/diagonal-exchange-in-matrix.html" target="_blank"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Diagonal Exchange in Matrix&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/04/upper-triangular-matrix.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/5041254241168159158" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/5041254241168159158" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/04/upper-triangular-matrix.html" rel="alternate" title="Upper triangular matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0a3_I02g9YEptl-qLSPmQPQZbchkmRgu5BfgmivuWDgnr1WTwBs_6G3BOG7VBQyO0KqMenpDbGECcDmrqPnQdycfJpvJPpa4wvvekite_M9a5Tol23xNCYo1Wmteq-1OefpA5IDPM-cs/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-4962636503194886119</id><published>2015-04-06T00:11:00.000+05:30</published><updated>2015-04-06T00:20:53.611+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Largest element in Matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to find the largest element in the matrix.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;To find the largest element of the matrix we simply take a variable temp and store the remporary value of matrix in it anf aftert every comparison we change them accourding to given condition.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;First of all take a matrix, declare the order of matrix and after that enter the element in the matrix after that do the operation to find out the largest element in the matrix&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;LarEle&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;Matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;big&amp;nbsp;=&amp;nbsp;matA[0,0];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(big&amp;nbsp;&amp;lt;&amp;nbsp;matA[row,col])&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;big=matA[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nLargest&amp;nbsp;element&amp;nbsp;in&amp;nbsp;matrix&amp;nbsp;A&amp;nbsp;is:&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;big);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif; line-height: 14px;"&gt;&lt;b&gt;Screenshot of output:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja2INqklowlgQM8Bo5Wn981HQ0BsLWfJol0DIqh6sTjrXOqZPj6m8KO1AT_iuMndENu-fmj8HcTXdjudGJFYTBAWYQBffLCjgYmTb-qI4rOLlA9bPtj5xOcdmMTonS1a8ZuDaIETYEVWQ/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja2INqklowlgQM8Bo5Wn981HQ0BsLWfJol0DIqh6sTjrXOqZPj6m8KO1AT_iuMndENu-fmj8HcTXdjudGJFYTBAWYQBffLCjgYmTb-qI4rOLlA9bPtj5xOcdmMTonS1a8ZuDaIETYEVWQ/s1600/1.png" height="334" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif; font-size: small;"&gt;Output of Program&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #073763;"&gt;Read Also:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/04/diagonal-exchange-in-matrix.html" target="_blank"&gt;Diagonal Exchange in C#&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.com/2015/04/largest-element-in-matrix.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4962636503194886119" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4962636503194886119" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/04/largest-element-in-matrix.html" rel="alternate" title="Largest element in Matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja2INqklowlgQM8Bo5Wn981HQ0BsLWfJol0DIqh6sTjrXOqZPj6m8KO1AT_iuMndENu-fmj8HcTXdjudGJFYTBAWYQBffLCjgYmTb-qI4rOLlA9bPtj5xOcdmMTonS1a8ZuDaIETYEVWQ/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-1045812862104317307</id><published>2015-04-05T21:08:00.000+05:30</published><updated>2015-04-05T21:08:22.111+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Diagonal Exchange in Matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #0c343d;"&gt;Question:&lt;/span&gt;&lt;/b&gt; &lt;span style="color: #351c75;"&gt;Program to exchange the diagonal of a matrix.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0ihxRG8UM-KyCcsYl1zPbyWcu50YgrZEZYCuvGoHIYNoTVs-ZSllA-z_qee_tQhiSTaFEmp-8uZls4VrciZANxaY74lGChcryJFUFd47dYUrieHQFx7i6VyBZkCHtcCxg4KC-7qB0Q1w/s1600/DiagExc.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="image of diagonal exchange matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0ihxRG8UM-KyCcsYl1zPbyWcu50YgrZEZYCuvGoHIYNoTVs-ZSllA-z_qee_tQhiSTaFEmp-8uZls4VrciZANxaY74lGChcryJFUFd47dYUrieHQFx7i6VyBZkCHtcCxg4KC-7qB0Q1w/s1600/DiagExc.png" height="148" title="Diagonal exchange matrix" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif; font-size: small;"&gt;Diagonal Exchange of &amp;nbsp;matrix&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;In the diagonal exchange matrix we exchange the two diagonal of a single matrix. To do this first of all we check the no. of row and column of the matrix if the no. of row and column of the matrix is not equal then the diagonal exchange is not possible b'coz in the diagonal exchange matrix it is compulsory that the no. of row and column is equal, only square matrix are perform the diagonal exchange operation. So, after check whether the order of the matrix is equal or not we enter the element in the matrix after that diagonal exchange matrix operations are done.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0c343d; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;DiagExc&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;!=&amp;nbsp;j)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Diagonal&amp;nbsp;exchange&amp;nbsp;is&amp;nbsp;not&amp;nbsp;possible."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;of&amp;nbsp;the&amp;nbsp;matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A&amp;nbsp;[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[row,row];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,row]=matA[row,i-row-1];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,i-row-1]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;after&amp;nbsp;exchanging&amp;nbsp;the&amp;nbsp;diagonals:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #e06666; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #0c343d; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Diagonal exchange operation:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[row,row];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,row]=matA[row,i-row-1];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,i-row-1]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #0c343d; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfSMZYtyjOPkT2UoTuSnPAMwkn4ulMFbJtfVIFAA6iKeyoGwvaHsWiSJpakCmex5TBEl5JW7ICn1Vz2xtvgBp8RY7BZjSVYZ9loahQv0kfV8M2cyumlrUBmfddSuo3M0_xNx_05KQ4ReQ/s1600/DiagExc1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="image of Screenshot of diagonal exchange matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfSMZYtyjOPkT2UoTuSnPAMwkn4ulMFbJtfVIFAA6iKeyoGwvaHsWiSJpakCmex5TBEl5JW7ICn1Vz2xtvgBp8RY7BZjSVYZ9loahQv0kfV8M2cyumlrUBmfddSuo3M0_xNx_05KQ4ReQ/s1600/DiagExc1.png" height="310" title="Screenshot of diagonal exchange matrix" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif; font-size: small;"&gt;Output of diagonal exchange matrix&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #0c343d; font-family: Verdana, sans-serif;"&gt;Read Also:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/04/skew-symmetric-matrix-in-c.html" target="_blank"&gt;Skew symmetric matrix in C#&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/search/label/Pattern%20Programming" target="_blank"&gt;Pattern program in C#&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/matrices.html" target="_blank"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Introduction to matrix in C#&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.com/2015/04/diagonal-exchange-in-matrix.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/1045812862104317307" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/1045812862104317307" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/04/diagonal-exchange-in-matrix.html" rel="alternate" title="Diagonal Exchange in Matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0ihxRG8UM-KyCcsYl1zPbyWcu50YgrZEZYCuvGoHIYNoTVs-ZSllA-z_qee_tQhiSTaFEmp-8uZls4VrciZANxaY74lGChcryJFUFd47dYUrieHQFx7i6VyBZkCHtcCxg4KC-7qB0Q1w/s72-c/DiagExc.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-5430433657005483310</id><published>2015-04-02T18:35:00.000+05:30</published><updated>2015-04-02T18:35:35.525+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Transpose of Matrix"/><title type="text">Skew Symmetric Matrix in C#</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Introduction:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;A square matrix &amp;nbsp;A = [&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ij&lt;/span&gt;] is said to be skew symmetric matrix if A' = -A , that is &lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ji&lt;/span&gt; = -&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ij&lt;/span&gt; for all possible values of i an dj. Now, if we put i=j, we have&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ii&lt;/span&gt; = -&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ii&lt;/span&gt;. Therefore 2&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ii&lt;/span&gt; = 0 or &lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ii&lt;/span&gt; = 0 for all i's. This means that all the diagonal element of a skew symmetric matrix are zero.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYHLZ-XfwWJmEtWlcl3KEATHYrQxJSgp4rljiA3EIO4-75xM2aXBkduq68oZAsB3eSQmxo_WGBmLRCBP4GZSq9n7OVJVqjpqN5VeU2s568D1qugtT-ILEWrM6bCmVcZjaZRpiiTG6a8wM/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Example of Skew Symmetric matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYHLZ-XfwWJmEtWlcl3KEATHYrQxJSgp4rljiA3EIO4-75xM2aXBkduq68oZAsB3eSQmxo_WGBmLRCBP4GZSq9n7OVJVqjpqN5VeU2s568D1qugtT-ILEWrM6bCmVcZjaZRpiiTG6a8wM/s1600/1.png" height="158" title="Example of Skew Symmetric matrix" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Fig: &amp;nbsp;Skew Symmetric matrix&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;SkewSymmetry&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matB&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matC&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;bool&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;isSkew&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;ord;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;order&amp;nbsp;of&amp;nbsp;Matrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ord&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;of&amp;nbsp;Matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matB[i,j]&amp;nbsp;=&amp;nbsp;matA[i,j]&amp;nbsp;*&amp;nbsp;(-1);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A'&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[j,i]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[i,j]&amp;nbsp;=&amp;nbsp;matA[j,i];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matC[i,j]&amp;nbsp;!=&amp;nbsp;matB[i,j])&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isSkew&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(isSkew&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;Skew&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;Skew&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #cc0000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;Description:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #351c75; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;In the above code first of all we ask user to input the order of matrix after that we enter the element of the matrix and we print the matrix on the console. there are three 2-dimensional array in the above code matA, matB, matC. MatA is the main 2-dimensional array on which we apply the transpose operation. To do this firstly we copy all the element of matA to matC now multiply the matC[] to -1 after matA[] is going to the transpose operation.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #351c75; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A'&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[j,i]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[i,j]&amp;nbsp;=&amp;nbsp;matA[j,i];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matC[i,j]&amp;nbsp;!=&amp;nbsp;matB[i,j])&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isSkew&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(isSkew&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;Skew&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;Skew&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;In this code:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;the transpose of matrix is copied in matC[] aafter that we compare matB[] and matC[] and according result answer print in console.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Logic:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 1: matA[i,j];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 2: matB[i,j] = matA[i,j];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 3: matB[i,j] = matB[i,j] * (-1);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 3: matA'[i,j];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 4: matC[i,j] = matA'[i,j];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 5: compare (matB[i,j] == matC[i,j]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 6: if yes&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;matrix is symmetric;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 7: else&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #20124d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; not symmetric matrix&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #20124d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; font-family: Verdana, Geneva, sans-serif; line-height: 18.2000007629395px;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #0b5394;"&gt;Screenshots:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #20124d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKYqwSqEnwP66T9ZPASWOtnLa7Hsv_fmK-NKT43zn7_pkP4Msynsv_NMRjJzrVOIt04QVuAy3PQ6et8TvyqaArhSC7KoP7soLmIQGSk1NZqGj-L-ovduTjLaIfC6BMtmmtbkcZi55wBU/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;img alt="Output of Skew symmetric matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuKYqwSqEnwP66T9ZPASWOtnLa7Hsv_fmK-NKT43zn7_pkP4Msynsv_NMRjJzrVOIt04QVuAy3PQ6et8TvyqaArhSC7KoP7soLmIQGSk1NZqGj-L-ovduTjLaIfC6BMtmmtbkcZi55wBU/s1600/1.png" height="442" title="Output of Skew symmetric matrix" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif; font-size: small;"&gt;Screenshot of Output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #351c75; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Read Also:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/transpose-of-matrix.html" target="_blank"&gt;Transpose of Matrix in C#&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/04/symmetric-matrix.html" target="_blank"&gt;Symmetric Matrix in C#&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.com/2015/04/skew-symmetric-matrix-in-c.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/5430433657005483310" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/5430433657005483310" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/04/skew-symmetric-matrix-in-c.html" rel="alternate" title="Skew Symmetric Matrix in C#" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYHLZ-XfwWJmEtWlcl3KEATHYrQxJSgp4rljiA3EIO4-75xM2aXBkduq68oZAsB3eSQmxo_WGBmLRCBP4GZSq9n7OVJVqjpqN5VeU2s568D1qugtT-ILEWrM6bCmVcZjaZRpiiTG6a8wM/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-4422447654767402664</id><published>2015-04-01T11:09:00.001+05:30</published><updated>2015-04-01T11:09:07.325+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Transpose of Matrix"/><title type="text">Symmetric Matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to check whether the matrix is symmetric or not.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #351c75;"&gt;Symmetric matrix:&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;A square matrix A = [&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ij&lt;/span&gt;] is said to be symmetric if A' = A, that is [&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ij&lt;/span&gt;]= [&lt;span style="font-size: large;"&gt;a&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ji&lt;/span&gt;] for all possible value of i and j. &amp;nbsp;For Example&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-tMCI5MLSoEDH5wvie8YuL_NZVeX7JS8Z3B3lPbp-ea4MFBxU3SpTIY1Ok24LP_MlvsTsMU8T1e0qzkWlPfL6OsAVMioQGn6ftywYA_RbluEgHrjgUte71D4f01bzgXz0wjT75n8i47U/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Symmetric matrix Example" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-tMCI5MLSoEDH5wvie8YuL_NZVeX7JS8Z3B3lPbp-ea4MFBxU3SpTIY1Ok24LP_MlvsTsMU8T1e0qzkWlPfL6OsAVMioQGn6ftywYA_RbluEgHrjgUte71D4f01bzgXz0wjT75n8i47U/s1600/1.png" height="134" title="Symmetric matrix Example" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;SkewSymmetric&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;ord;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matB&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matC&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;bool&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;isSymmetry&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;order&amp;nbsp;of&amp;nbsp;square&amp;nbsp;matrix.&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ord&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;of&amp;nbsp;the&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[i,j]&amp;nbsp;=&amp;nbsp;matA[i,j];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A'&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[j,i]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matB[i,j]&amp;nbsp;=&amp;nbsp;matA[j,i];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matB[i,j]&amp;nbsp;!=&amp;nbsp;matC[i,j]&amp;nbsp;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isSymmetry&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(isSymmetry&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;span style="background-color: inherit; color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #cc0000; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #351c75; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;In the above code first of all we ask user to input the order of matrix after that we enter the element of the matrix and we print the matrix on the console. there are three 2-dimensional array in the above code matA, matB, matC. MatA is the first 2-dimensional array by which we know whether the matrix is symmetric or not. To do this firstly we eneter all the element of matA to matC after that it is going to the transpose operation after the transpose operation done the value of MatA' is store in the matB.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;ord;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;j&amp;lt;ord;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matB[i,j]&amp;nbsp;!=&amp;nbsp;matC[i,j]&amp;nbsp;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isSymmetry&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(isSymmetry&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;Symmetric"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; color: black;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;The above code is the Condition of symmetric matrix here we check matB[i,j] is equals to the matC[i,j], if each element of matB is equal to the matC than the matrix is symmetric other wise not.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Logic:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 1: matA[,];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 2: matC[,] = matA[,];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 3: matA'[,];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 4: matB[,] = matA'[,];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 5: matB[,] == matC[,];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 6: if yes&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;matrix is symmetric;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;Step 7: else&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #20124d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; not symmetric matrix&lt;/span&gt; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot of Output:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSvzkLzE-7jhjael_h8lslUpcnLf9dH2n1dWGGjPjBs0HblhvYo8yXPO2X_KiQxW4lESDRg30iQckPUzbIwWev1ta1_UwefDRrz9255l4E5pmKqUY78VJ434SwhtsPmX0YquyS7spH654/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Symmetric matrix in C#" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSvzkLzE-7jhjael_h8lslUpcnLf9dH2n1dWGGjPjBs0HblhvYo8yXPO2X_KiQxW4lESDRg30iQckPUzbIwWev1ta1_UwefDRrz9255l4E5pmKqUY78VJ434SwhtsPmX0YquyS7spH654/s1600/1.png" height="434" title="Symmetric matrix in C#" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;Read Also:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/transpose-of-matrix.html" target="_blank"&gt;&lt;b&gt;Transpose of matrix in C#&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.com/2015/04/symmetric-matrix.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4422447654767402664" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4422447654767402664" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/04/symmetric-matrix.html" rel="alternate" title="Symmetric Matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-tMCI5MLSoEDH5wvie8YuL_NZVeX7JS8Z3B3lPbp-ea4MFBxU3SpTIY1Ok24LP_MlvsTsMU8T1e0qzkWlPfL6OsAVMioQGn6ftywYA_RbluEgHrjgUte71D4f01bzgXz0wjT75n8i47U/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-1078781359061981994</id><published>2015-03-31T15:00:00.000+05:30</published><updated>2015-03-31T15:00:02.639+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Transpose of Matrix"/><title type="text">Transpose of Matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to transpose a matrix.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Definition:&lt;/b&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Verdana, sans-serif;"&gt; &lt;/span&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;If A matrix be an m x n matrix, then the matrix obtained by interchanging the rows and columns of A is called the transpose of matrix A. Transpose of the matrix A is denoted by A'. In other words, if A is the order of m x n. then A' is the order of n x m.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwwxMT1FWgGux_iTNaGAz728EKoRRR4cgJt2nArKPO9YWYl_vSl1B2aMy-rTPhlcOn3p9oeRowBWJXc04qNZprvvDWHu46G8tsf9AsKAE3v5IJZbVbOCjjQNvTixz4UWzjxx8QS6UDfqM/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwwxMT1FWgGux_iTNaGAz728EKoRRR4cgJt2nArKPO9YWYl_vSl1B2aMy-rTPhlcOn3p9oeRowBWJXc04qNZprvvDWHu46G8tsf9AsKAE3v5IJZbVbOCjjQNvTixz4UWzjxx8QS6UDfqM/s1600/1.png" height="188" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Properties of transpose of matrix:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;(A')' = A&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;(k A)' = kA'&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;(A + B)' = A'&amp;nbsp;+B'&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;(AB)' = B' A'&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;TransMat&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;m,&amp;nbsp;n,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;m&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;the&amp;nbsp;matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col&amp;nbsp;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A&amp;nbsp;:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A\':"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=m;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[col,row]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #674ea7; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;To &amp;nbsp;transpose the matrix we simply change the rows into columns and columns into row.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=m;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[col,row]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;In the above code n is the number of columns which refers the row now and m is the number of row which refers the columns now.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot of Output:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMgNFoW9OjEwtQ0gPG36ZDAKIoPaJkvA6MYpE3dlIluQibMWl1NatOlxMD5ZQJSgtU4EACsWS6YFFUMTdMsWKlTIKZsob0IJlFRL4L4OBwlCRJHKmoMI2t4PpsNJVRUMDALWp8ey1Zlvg/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Output of Transpose" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMgNFoW9OjEwtQ0gPG36ZDAKIoPaJkvA6MYpE3dlIluQibMWl1NatOlxMD5ZQJSgtU4EACsWS6YFFUMTdMsWKlTIKZsob0IJlFRL4L4OBwlCRJHKmoMI2t4PpsNJVRUMDALWp8ey1Zlvg/s1600/1.png" height="314" title="Output of Transpose" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Read Also:&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/interchange-operation-in-matrix.html" target="_blank"&gt;&lt;b&gt;Interchange operation in Matrix&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/03/transpose-of-matrix.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/1078781359061981994" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/1078781359061981994" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/transpose-of-matrix.html" rel="alternate" title="Transpose of Matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwwxMT1FWgGux_iTNaGAz728EKoRRR4cgJt2nArKPO9YWYl_vSl1B2aMy-rTPhlcOn3p9oeRowBWJXc04qNZprvvDWHu46G8tsf9AsKAE3v5IJZbVbOCjjQNvTixz4UWzjxx8QS6UDfqM/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-7641546075278563026</id><published>2015-03-31T07:18:00.001+05:30</published><updated>2015-03-31T07:21:13.220+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Interchange operation in Matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;h4 style="text-align: left;"&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;Row &amp;nbsp;Interchange:&lt;/span&gt;&lt;/h4&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;Question: Program to interchange the row in the matrix.&lt;/span&gt;&lt;/h3&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;In this question first of all we declare the order of the matrix and after that we enter the element in the matrix after that we print the matrix on the screen before going to the interchange operation after that user enter the no. of row1 and no. of row2 which S/he want to interchange after that we perform the interchange operation.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;Code snippet:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;IntRow&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;m,n,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;m=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;MatrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"MatrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;interchange:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;interchange&amp;nbsp;with:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;k=1;&amp;nbsp;k&amp;lt;=n;&amp;nbsp;k++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[i,k];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,k]&amp;nbsp;=&amp;nbsp;matA[j,k];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[j,k]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrixA&amp;nbsp;after&amp;nbsp;interchange&amp;nbsp;of&amp;nbsp;row:{0}&amp;nbsp;and&amp;nbsp;row {1}:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Row interchange operation:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;k=1;&amp;nbsp;k&amp;lt;=n;&amp;nbsp;k++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[i,k];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,k]&amp;nbsp;=&amp;nbsp;matA[j,k];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[j,k]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #20124d; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="line-height: 14px;"&gt;in the above we take a third variable temp and simply interchange the element of the desired row by the using of temp variable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot of the output:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKRnHaflpxhIi11M7eRDtB8oxx-jZ4huPEk32fcx2Gst2ooVSIr_0zPSphiHaX8FSgPIQRYmkU8hyphenhyphenvte2yQiIim5R4JXc-uTQwJnSEqzn17PRw3kiOYpppobQmxVdzF4Ob0AJmZJEqPc0/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Row Exchange Output" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKRnHaflpxhIi11M7eRDtB8oxx-jZ4huPEk32fcx2Gst2ooVSIr_0zPSphiHaX8FSgPIQRYmkU8hyphenhyphenvte2yQiIim5R4JXc-uTQwJnSEqzn17PRw3kiOYpppobQmxVdzF4Ob0AJmZJEqPc0/s1600/12.png" height="376" title="Row Exchange Output" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style="text-align: left;"&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;Column Interchange:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to interchange column of a matrix.&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #20124d; font-family: Verdana, sans-serif;"&gt;In this question first of all we declare the order of the matrix and after that we enter the element in the matrix after that we print the matrix on the screen before going to the interchange operation after that user enter the no. of col1 and no. of col2 which S/he want to interchange after that we perform the interchange operation.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;IntCol&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;m,n,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;m=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;MatrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]&amp;nbsp;:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"MatrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;interchange:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;interchange&amp;nbsp;with:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;k=1;&amp;nbsp;k&amp;lt;=n;&amp;nbsp;k++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[k,i];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[k,i]&amp;nbsp;=&amp;nbsp;matA[k,j];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[k,j]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrixA&amp;nbsp;after&amp;nbsp;interchange&amp;nbsp;of&amp;nbsp;col:{0}&amp;nbsp;and&amp;nbsp;col:{1}:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;b&gt;Column interchange operation:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;k=1;&amp;nbsp;k&amp;lt;=n;&amp;nbsp;k++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[k,i];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[k,i]&amp;nbsp;=&amp;nbsp;matA[k,j];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[k,j]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, 'Courier New', Courier, mono, serif; line-height: 14px;"&gt;&lt;span style="color: #073763;"&gt;in the above we take a third variable temp and simply interchange the element of the desired row by the using of temp variable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEvVUQ93bEr0E4sj6J2h6ogK3mNmRvvjBUI8YNoJ6_VGWE6IAHSqIc_bQfTCP0jI1KJl_U9gLT9ZAjouyN9T0oSl99uMYK-zBHv-P8OFhsnZbExZiDwIvKBClEJJ2DyimiHKyXx4jjZy8/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Column Exchange Output" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEvVUQ93bEr0E4sj6J2h6ogK3mNmRvvjBUI8YNoJ6_VGWE6IAHSqIc_bQfTCP0jI1KJl_U9gLT9ZAjouyN9T0oSl99uMYK-zBHv-P8OFhsnZbExZiDwIvKBClEJJ2DyimiHKyXx4jjZy8/s1600/12.png" height="374" title="Column Exchange Output" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style="text-align: left;"&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;Diagonal Exchange:&lt;/span&gt;&lt;/h4&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="color: #4c1130; font-family: Verdana, sans-serif;"&gt;Question: Program to interchange the diagonal of a matrix.&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;In this question first of all we check whether the order is same or not if the order is same than exchange operation is occur otherwise not. After that we enter the element in the matrix after that we print the matrix on the screen.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;DiagExc&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;!=&amp;nbsp;j)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Diagonal&amp;nbsp;exchange&amp;nbsp;is&amp;nbsp;not&amp;nbsp;possible."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;of&amp;nbsp;the&amp;nbsp;matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A&amp;nbsp;[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[row,row];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,row]=matA[row,i-row-1];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,i-row-1]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;after&amp;nbsp;exchanging&amp;nbsp;the&amp;nbsp;diagonals:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;j;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Diagonal Exchange Operation:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;matA[row,row];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,row]=matA[row,i-row-1];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,i-row-1]&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: purple; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot of Output 1:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizssP0eZHw_qaGB92aMYqF0EcyvbpvzWBE-0Kcf6rsS7NX91hsQ-I6aTYqneZ1UXZeRAnEWgavSX6w_PTY91ZEqtecR4tW0Yu0mPSFT8RxYp35CiQ_JuGj4LNntFNL3fHuaCq3jaI0Pzg/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Screenshot of output1" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizssP0eZHw_qaGB92aMYqF0EcyvbpvzWBE-0Kcf6rsS7NX91hsQ-I6aTYqneZ1UXZeRAnEWgavSX6w_PTY91ZEqtecR4tW0Yu0mPSFT8RxYp35CiQ_JuGj4LNntFNL3fHuaCq3jaI0Pzg/s1600/12.png" height="334" title="Screenshot of output1" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style="font-family: Verdana, sans-serif; line-height: 14px;"&gt;&lt;span style="color: purple;"&gt;Screenshot of Output 2:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style="font-family: Verdana, sans-serif; line-height: 14px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4dBrwQbUYYRF90VbukDHXKBlbhUa6zcnX8Vpcwi3LSQmogAjg0M1vygLw_65hEQB4skVka2tAHZ-i6GEtL1PiOwHTr_tOVn1-ka7SMHmslVgZn12Feg4uqOeykUpTbKBfWghrjryyPBI/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Screenshot of output2" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4dBrwQbUYYRF90VbukDHXKBlbhUa6zcnX8Vpcwi3LSQmogAjg0M1vygLw_65hEQB4skVka2tAHZ-i6GEtL1PiOwHTr_tOVn1-ka7SMHmslVgZn12Feg4uqOeykUpTbKBfWghrjryyPBI/s1600/12.png" height="92" title="Screenshot of output2" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Read Also:&lt;br /&gt;
&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/search/label/Pattern%20Programming" target="_blank"&gt;Pattern Programming in C#&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2015/01/arrays-using-command-line-arguments.html" target="_blank"&gt;&lt;b&gt;Array using Command&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;br /&gt;
&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/03/interchange-operation-in-matrix.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/7641546075278563026" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/7641546075278563026" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/interchange-operation-in-matrix.html" rel="alternate" title="Interchange operation in Matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKRnHaflpxhIi11M7eRDtB8oxx-jZ4huPEk32fcx2Gst2ooVSIr_0zPSphiHaX8FSgPIQRYmkU8hyphenhyphenvte2yQiIim5R4JXc-uTQwJnSEqzn17PRw3kiOYpppobQmxVdzF4Ob0AJmZJEqPc0/s72-c/12.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-2888365174654868780</id><published>2015-03-25T14:40:00.001+05:30</published><updated>2015-03-26T06:56:19.596+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Even and odd element in matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #351c75;"&gt;Question:&lt;/span&gt; &lt;span style="color: #741b47;"&gt;Program to find the number of even and odd elements in the matrix.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;In this type of questions where we have to find the number of element we use a counting variable e.g count who count the number of occurrence. In this type of matrix questions first of all we declare the order of matrix after the matrix are ready we count the number of occurrence &amp;nbsp;of the element according to the given condition.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code snippet :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;findEle&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;odd=0,&amp;nbsp;even=0;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;col=Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;the&amp;nbsp;matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt16(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matA[i,j]%2&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;even++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;odd++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Total&amp;nbsp;even&amp;nbsp;numbers&amp;nbsp;in&amp;nbsp;matrix&amp;nbsp;is:{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;even);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Total&amp;nbsp;odd&amp;nbsp;numbers&amp;nbsp;in&amp;nbsp;matrix&amp;nbsp;is:&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;odd);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #38761d; font-family: Courier New, Courier, monospace; font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;Description:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;In the above code first of all we ask user to input the order of matrix after that we enter the element of the matrix and after that we print the matrix on the console after that we setup the logic of counting number of occurrence of even and odd elements of the matrix.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matA[i,j]%2&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;even++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;odd++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif; line-height: 14px;"&gt;in the above code we declare two variable even and odd and according to the question there is one increment on even when there is a even element in the matrix same for the odd element of the matrix.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #741b47; font-family: Verdana, sans-serif; line-height: 14px;"&gt;&lt;b&gt;Screenshot of output:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlzOfZYquHTjOCcJ_87UKnRm4n0demzu1iATkFHNa6fT9QovqBZ_tyScIc9Tq_bZnYWZO6aVu5aSOP67F9GzwBkL_t2sVkJwlgNmdPpbwZ7JqO4JX0SutzfsgPfTDc_RSBBUGY0toxp7I/s1600/123.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Output of evenodd matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlzOfZYquHTjOCcJ_87UKnRm4n0demzu1iATkFHNa6fT9QovqBZ_tyScIc9Tq_bZnYWZO6aVu5aSOP67F9GzwBkL_t2sVkJwlgNmdPpbwZ7JqO4JX0SutzfsgPfTDc_RSBBUGY0toxp7I/s1600/123.png" height="366" title="Output of evenodd matrix" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;Read also:-&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/addition-and-subtraction-of-matrices.html" target="_blank"&gt;Sum of diagonal of resultant marix&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/01/variable-length-argument-lists-varargs.html" target="_blank"&gt;VARARGS&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/01/arrays-in-c-sharp.html" target="_blank"&gt;&lt;b&gt;Array in C#&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/03/even-and-odd-element-in-matrix.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2888365174654868780" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2888365174654868780" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/even-and-odd-element-in-matrix.html" rel="alternate" title="Even and odd element in matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlzOfZYquHTjOCcJ_87UKnRm4n0demzu1iATkFHNa6fT9QovqBZ_tyScIc9Tq_bZnYWZO6aVu5aSOP67F9GzwBkL_t2sVkJwlgNmdPpbwZ7JqO4JX0SutzfsgPfTDc_RSBBUGY0toxp7I/s72-c/123.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-3072742646399278596</id><published>2015-03-25T09:56:00.001+05:30</published><updated>2015-03-25T09:57:13.740+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Addition and subtraction of matrices</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #20124d;"&gt;Question:&lt;/span&gt;&lt;span style="color: #674ea7;"&gt; Program to addition and subtraction of two matrix and sum of their diagonal.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Rules for matrix Addition:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;1. &lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;span style="color: #351c75;"&gt;In matrix addition, if matrix A and matrix B are in the&amp;nbsp;&lt;b&gt;same order&lt;/b&gt;&amp;nbsp;(row,column). Then, the sum of two matrix is possible.&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style="color: #134f5c;"&gt;Matrix C = Matrix A&amp;nbsp;+ Matrix B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for the same order i.e M x N.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;span style="color: #351c75;"&gt;2. Addition of matrices is an example of binary operation on the set of matrices of same order.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;span style="color: #351c75;"&gt;3. Let A and B are two matrices&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #20124d;"&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt; &lt;b&gt;A&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;+ B = B&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;+ A&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color: #20124d;"&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A &lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;+ 0 = 0&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;+ A = A&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color: #20124d;"&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;+ 0 = 0&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;b&gt;Rules for Matrix Subtraction&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;1. &lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;span style="color: #351c75;"&gt;In matrix subtraction, we follow the same rule, if matrix A and matrix B are in the&amp;nbsp;&lt;b&gt;same order (row,column)&lt;/b&gt;. Then , the subtraction of two matrix is possible.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="color: #351c75;"&gt;&lt;b&gt;Matrix C = Matrix A - Matrix B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for the same order i.e M x N.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;2. &lt;/span&gt;&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;span style="color: #351c75;"&gt;Subtraction of matrices is an example of binary operation on the set of matrices of same order.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;b&gt;&lt;span style="color: #741b47;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AddSub&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;m,n,row,col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matB&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matC&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AddSub(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;m=i;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=j;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;readMat()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;of&amp;nbsp;matrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"matA[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,row,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;of&amp;nbsp;matrix&amp;nbsp;B:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"matB[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,row,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matB[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;printMat()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;m;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;B"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;m;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matB[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Operation()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Type&amp;nbsp;\"Add\"&amp;nbsp;for&amp;nbsp;Addition&amp;nbsp;and&amp;nbsp;\"Sub\"&amp;nbsp;for&amp;nbsp;Substraction&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;response&amp;nbsp;=&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;response&amp;nbsp;=&amp;nbsp;response.ToUpper();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;switch&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;case&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"ADD"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[row,col]&amp;nbsp;+=&amp;nbsp;matA[row,col]+matB[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Resultant&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matC[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;case&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"SUB"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[row,col]&amp;nbsp;-=&amp;nbsp;matA[row,col]-matB[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Resultant&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matC[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;default&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;valid&amp;nbsp;Word"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;DiaSum()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;res=0;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Sum&amp;nbsp;of&amp;nbsp;resultant&amp;nbsp;diagonal&amp;nbsp;is&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row==col)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;res&amp;nbsp;+=&amp;nbsp;matC[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;res);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,j;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AddSub&amp;nbsp;AS&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;AddSub(i,j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS.readMat();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS.printMat();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS.Operation();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS.DiaSum();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #073763;"&gt;** Complete Code&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;First of all we declare some variable &lt;b&gt;m, n, row, col&lt;/b&gt; of type&lt;b&gt; int&lt;/b&gt; and three matrices &lt;b&gt;matA, matB, matC&lt;/b&gt;. After declaring variables and create constructor we create four methods &lt;b&gt;readMat(), printMat(), Operation(), DiaSum()&lt;/b&gt;. readMat() method are use to &lt;i&gt;entering the elements on matrix A and matrix B&lt;/i&gt; according to their order declare in main() method. Method printMat() use to print the matrix A and matrix B on the console after that Operation method is call for doing operation of addition and subtraction.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #660000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;1. readMat()&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;readMat()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;of&amp;nbsp;matrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"matA[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,row,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;of&amp;nbsp;matrix&amp;nbsp;B:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"matB[{0},{1}]&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,row,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matB[row,col]=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; line-height: 18.2000007629395px;"&gt;&lt;span style="color: #660000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;2. printMat()&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;printMat()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;m;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;B"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;m;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,matB[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #660000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;3.Operation()&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Operation()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Type&amp;nbsp;\"Add\"&amp;nbsp;for&amp;nbsp;Addition&amp;nbsp;and&amp;nbsp;\"Sub\"&amp;nbsp;for&amp;nbsp;Substraction&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;response&amp;nbsp;=&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;response&amp;nbsp;=&amp;nbsp;response.ToUpper();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;switch&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;case&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"ADD"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[row,col]&amp;nbsp;+=&amp;nbsp;matA[row,col]+matB[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Resultant&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matC[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;case&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"SUB"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[row,col]&amp;nbsp;-=&amp;nbsp;matA[row,col]-matB[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Resultant&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matC[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;default&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;valid&amp;nbsp;Word"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #660000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;4. Diasum() :&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif; font-size: 12px;"&gt; This method is use for print the sum of diagonal of resultant matrix C&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;DiaSum()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;res=0;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Sum&amp;nbsp;of&amp;nbsp;resultant&amp;nbsp;diagonal&amp;nbsp;is&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=0;&amp;nbsp;row&amp;lt;m;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=0;&amp;nbsp;col&amp;lt;n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row==col)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;res&amp;nbsp;+=&amp;nbsp;matC[row,col];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;res);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #741b47; font-family: Verdana, sans-serif; font-size: x-small;"&gt;Screenshot of output:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvxdRNCB-IG-9P5JYHMiclunBeT1RFujy8op-cto-g9YtyH551W-hoSuJ2VdIi2FSkJ8fdIdgG4_cjIOCeyLqEx3_nTebhXuhEdZrMDs-_Ci8UOGvLPc6NPce-LwZ3UTii8RWwrj1L558/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="screenshot of output" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvxdRNCB-IG-9P5JYHMiclunBeT1RFujy8op-cto-g9YtyH551W-hoSuJ2VdIi2FSkJ8fdIdgG4_cjIOCeyLqEx3_nTebhXuhEdZrMDs-_Ci8UOGvLPc6NPce-LwZ3UTii8RWwrj1L558/s1600/Untitled.png" height="601" title="screenshot of output" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style="color: #38761d; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Read also:-&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2014/09/1.html" target="_blank"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Run C# in console.&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;br /&gt;
&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/03/addition-and-subtraction-of-two-matrix.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/3072742646399278596" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/3072742646399278596" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/addition-and-subtraction-of-matrices.html" rel="alternate" title="Addition and subtraction of matrices" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvxdRNCB-IG-9P5JYHMiclunBeT1RFujy8op-cto-g9YtyH551W-hoSuJ2VdIi2FSkJ8fdIdgG4_cjIOCeyLqEx3_nTebhXuhEdZrMDs-_Ci8UOGvLPc6NPce-LwZ3UTii8RWwrj1L558/s72-c/Untitled.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-2673238156045895785</id><published>2015-03-24T09:54:00.000+05:30</published><updated>2015-03-24T09:56:10.100+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Type of Matrix"/><title type="text">Identity matrix in C#</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question:&lt;/b&gt; &lt;b&gt;Program to check whether the matrix is Identity or not.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;A matrix is Said to be identity matrix if it satisfied following criteria:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #351c75;"&gt;Matrix is &lt;b&gt;Square matrix&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #351c75;"&gt;Element of diagonal are all 1.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #351c75;"&gt;Rest element of matrix excluding diagonal are all zero.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Identity Matrix :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Conditions of Identity matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" height="172" title="Conditions of Identity matrix" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;We denote the identity matrix of order n. When order is clear by context, we simply write it as I.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;For example:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNcqBJ8y0xTTiZnjzjyiaGCqOMyn9w2xg9-poI9Qxg0z0YHhquom7Ki0ekb9eECBas7rc7IKg_Mgd8hp9xM0t3F7Su5-PDgtvj0WP3wM__KNTO1XYItKPtgwX7Zjc6Ne_E_HeXe8Fl8uc/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Identity Matrix Image" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNcqBJ8y0xTTiZnjzjyiaGCqOMyn9w2xg9-poI9Qxg0z0YHhquom7Ki0ekb9eECBas7rc7IKg_Mgd8hp9xM0t3F7Su5-PDgtvj0WP3wM__KNTO1XYItKPtgwX7Zjc6Ne_E_HeXe8Fl8uc/s1600/Untitled.png" height="166" title="Identity Matrix Image" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;In the above A, B, C are Identity matrix of order 1, 2, 3 respectively.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;Observe that &lt;a href="http://zeroc-sharp.blogspot.in/2015/03/scalar-matrix-in-c.html" target="_blank"&gt;&lt;b&gt;Scalar Matrix&lt;/b&gt;&lt;/a&gt;&amp;nbsp;is an identity matrix when &amp;nbsp;k = 1. But every Identity matrix is clearly a scalar matrix.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;IdtMat&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;rows&amp;nbsp;and&amp;nbsp;cols&amp;nbsp;:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[i,&amp;nbsp;i];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;Elements&amp;nbsp;in&amp;nbsp;Matrix:\n"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;row&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"A[{0},&amp;nbsp;{1}]&amp;nbsp;=&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[row,col]=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A:\n"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;row&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0,&amp;nbsp;2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[row,col]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;bool&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;isIdentity&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;row&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;((row&amp;nbsp;==&amp;nbsp;col&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;matA[row,&amp;nbsp;col]&amp;nbsp;!=&amp;nbsp;1)&amp;nbsp;||&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(row&amp;nbsp;!=&amp;nbsp;col&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;matA[row,&amp;nbsp;col]&amp;nbsp;!=&amp;nbsp;0))&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isIdentity&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(isIdentity)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nIdentity&amp;nbsp;Matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nNot&amp;nbsp;an&amp;nbsp;Identity&amp;nbsp;Matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadKey(&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #38761d; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style="background-color: white; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #351c75;"&gt;In the above code first of all we declare some variable row, col, i to read and write the matrix we take a 2-dimensional array of matA and a bool variable which is initialize to true.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: #351c75;"&gt;First of all we enter the no. of row and column in Line 9,10,11 . After that we enter the element of matrix and print the matrix.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white;"&gt;
&lt;ol class="dp-c" start="1" style="border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: normal; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;row&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;col&amp;nbsp;&amp;lt;&amp;nbsp;i;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;((row&amp;nbsp;==&amp;nbsp;col&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;matA[row,&amp;nbsp;col]&amp;nbsp;!=&amp;nbsp;1)&amp;nbsp;||&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(row&amp;nbsp;!=&amp;nbsp;col&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;matA[row,&amp;nbsp;col]&amp;nbsp;!=&amp;nbsp;0))&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isIdentity&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 14px;"&gt;&lt;span style="color: #20124d;"&gt;In the above piece of code we design the logic of Identity matrix if i and j equal to each other i.e (1,1) (2,2) (3,3) then "1" is print or if i and j not equals to each other and if elements of matrix not equals to 0 than ths IsIdentity bool value changed to false.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Screenshot of output:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheD9c7yHmM2wgD_nUU9cJIVW9yv_xq19le6DIT9gmypgQSAthfQ4RdBfpx_wlSKhA5lEZ84VVznSmti_jj1g-OamavSDha-5XhL05gmyZuGRsVuHOhRonTFBuNSKabNM3aDv4nYj2IKA8/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Output of Identity Matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheD9c7yHmM2wgD_nUU9cJIVW9yv_xq19le6DIT9gmypgQSAthfQ4RdBfpx_wlSKhA5lEZ84VVznSmti_jj1g-OamavSDha-5XhL05gmyZuGRsVuHOhRonTFBuNSKabNM3aDv4nYj2IKA8/s1600/Untitled.png" height="328" title="Output of Identity Matrix" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="color: #38761d; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Read Also:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/search/label/Type%20of%20Matrix" target="_blank"&gt;Types of matrix in C#&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s1600/Untitled.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/03/identity-matrix-in-c.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2673238156045895785" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2673238156045895785" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/identity-matrix-in-c.html" rel="alternate" title="Identity matrix in C#" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKkGR0snPsF5MPUzMX6jBj5_QcNEfiXjFpzqxnSqH_v7SXBfNDq3pofE6LgGiow_LowAm4fHBZdzFxa58hwUjEwT0nvp-zQDvJZD5Ce9D390cUfhaofeDhuv66xNOjhzkbwJHNhDJOfy4/s72-c/Untitled.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-3948735251961361043</id><published>2015-03-23T20:09:00.001+05:30</published><updated>2015-03-23T20:09:42.236+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Type of Matrix"/><title type="text">Scalar Matrix in C#</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question:&lt;/b&gt; &lt;span style="color: #351c75;"&gt;&lt;b&gt;Program to check whether the given matrix is scalar or not.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;A Diagonal matrix is said to be scalar matrix if its diagonal elements are equals that is, A square matrix is said to be scalar if all non diagonal elements is equals to zero and all diagonal elements is equals to k, where k is some constant value.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #cc0000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjou0ksYXYtKI_nyYEjHpSPi9DMLHgM2oAl5sgJNQxXPaSWkFI9ZcSbFAGf19dGXf1Miy3MkWeaa57xcSxX_EkMkjIi5nLX6n9yba4imh08GXqHK7_yiu9-yQXt5XHGHjuZcZ1jxsRr4A/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Scalar Matrix in C#" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjou0ksYXYtKI_nyYEjHpSPi9DMLHgM2oAl5sgJNQxXPaSWkFI9ZcSbFAGf19dGXf1Miy3MkWeaa57xcSxX_EkMkjIi5nLX6n9yba4imh08GXqHK7_yiu9-yQXt5XHGHjuZcZ1jxsRr4A/s1600/Untitled.png" height="184" title="Scalar Matrix in C#" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;The above three matrix are scalar matrix of order 1, 2, 3 respectively.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000; font-family: Verdana, sans-serif;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Scalar&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;i,&amp;nbsp;j;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;bool&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;IsScalar&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;col&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;of&amp;nbsp;Matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&amp;nbsp;(&amp;nbsp;(i&amp;nbsp;==&amp;nbsp;j)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(matA[i,j]&amp;nbsp;!=&amp;nbsp;matA[1,1])&amp;nbsp;)&amp;nbsp;||&amp;nbsp;(&amp;nbsp;(i&amp;nbsp;!=&amp;nbsp;j)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(matA[i,j]!=&amp;nbsp;0)&amp;nbsp;)&amp;nbsp;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsScalar&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(IsScalar==&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;given&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;Scalar&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;given&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;Scalar&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #073763;"&gt;** Complete code&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #134f5c; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #134f5c; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;In the above code first of all we declare some variable row, col, i, j to read and write the matrix we take a 2-dimensional array of matA and a bool variable which is initialize to true.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;First of all we enter the no. of row and column in Line 10 to 13 remember the no, of row and column must be equal. After that we enter the element of matrix and print the matrix.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i=1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&amp;nbsp;(&amp;nbsp;(i&amp;nbsp;==&amp;nbsp;j)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(matA[i,j]&amp;nbsp;!=&amp;nbsp;matA[1,1])&amp;nbsp;)&amp;nbsp;||&amp;nbsp;(&amp;nbsp;(i&amp;nbsp;!=&amp;nbsp;j)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(matA[i,j]!=&amp;nbsp;0)&amp;nbsp;)&amp;nbsp;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsScalar&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #073763; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;In the above piece of code we design the logic of scalar number if i and j equal to each other i.e (1,1) (2,2) (3,3) and if it is not equals to first element of the matrix placed at the position of (1,1) or if i and j not equals to each other and if elements of matrix not equals to 0 than ths IsScalar bool value changed to false.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(IsScalar ==&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;given&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;Scalar&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;given&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;Scalar&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #351c75; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;if IsScalar is remain true then the matrix is scalar matrix else "not scalar matrix" statement print on console.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #990000; font-family: Verdana, sans-serif;"&gt;Screenshot of Output:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLAW0LsAMPHR_kgni_PRAAl7BTyfL_pVFAouJWTOs_QOqX1005g4JKhiKEhIdvxGVwx3o_-4JoO27YO3T5w4Ie0TCnftzgjSvNiM5e7EuScceQDKeS7zsUnyLC_KQSn-s9HXZBh5PfFYM/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Output of Scalar matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLAW0LsAMPHR_kgni_PRAAl7BTyfL_pVFAouJWTOs_QOqX1005g4JKhiKEhIdvxGVwx3o_-4JoO27YO3T5w4Ie0TCnftzgjSvNiM5e7EuScceQDKeS7zsUnyLC_KQSn-s9HXZBh5PfFYM/s1600/Untitled.png" height="392" title="Output of Scalar matrix" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;i&gt;Read Also:-&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;i&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/row-column-and-square-matrix-in-c.html" target="_blank"&gt;Row, Column and square matrix in C#&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/zero-matrix-or-null-matrix.html" target="_blank"&gt;Zero matrix in C#&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/diagonal-matrix-in-c.html" target="_blank"&gt;Diagonal matrix in C#&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/matrices.html" target="_blank"&gt;&lt;b&gt;Introduction to matrix in C#&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/03/scalar-matrix-in-c.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/3948735251961361043" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/3948735251961361043" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/scalar-matrix-in-c.html" rel="alternate" title="Scalar Matrix in C#" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjou0ksYXYtKI_nyYEjHpSPi9DMLHgM2oAl5sgJNQxXPaSWkFI9ZcSbFAGf19dGXf1Miy3MkWeaa57xcSxX_EkMkjIi5nLX6n9yba4imh08GXqHK7_yiu9-yQXt5XHGHjuZcZ1jxsRr4A/s72-c/Untitled.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-8786536826165856460</id><published>2015-03-23T08:30:00.000+05:30</published><updated>2015-03-23T08:30:00.832+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Type of Matrix"/><title type="text">Row, Column and Square Matrix in C#</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #741b47;"&gt;Question:&lt;/span&gt;&lt;/b&gt; &lt;span style="color: #351c75;"&gt;Program to check whether the matrix is row matrix or columns matrix or the square matrix.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #b45f06; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Row Matrix:&lt;/b&gt;&lt;/span&gt; &lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;A matrix is said to be row matrix if it has only &lt;b&gt;one row&lt;/b&gt;. A matrix of &lt;b&gt;&lt;i&gt;order 1 x n&lt;/i&gt;&lt;/b&gt; is the row matrix.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj5-rklR5jS77QndTpj9qm-VQjXS5n82vukF_AAyoSgHDsl5C2TPwRZ2gFkppH6zjg5Bgp7XzIt8Z91W_XCkwdVIQHylM6FjVep9s3_36YXcoRa9Szvs_yjybwB0kcyEJ4CA54iYWG8BU/s1600/Zero0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Row matrix Example" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj5-rklR5jS77QndTpj9qm-VQjXS5n82vukF_AAyoSgHDsl5C2TPwRZ2gFkppH6zjg5Bgp7XzIt8Z91W_XCkwdVIQHylM6FjVep9s3_36YXcoRa9Szvs_yjybwB0kcyEJ4CA54iYWG8BU/s1600/Zero0.png" height="229" title="Row Matrix Example" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="color: #b45f06; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Column Matrix :&lt;/b&gt;&lt;/span&gt; &lt;span style="color: #351c75;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;A matrix is said to be column matrix if it has only &lt;b&gt;one column&lt;/b&gt;. A matrix of &lt;b&gt;order m x 1&lt;/b&gt; &amp;nbsp;is the column matrix.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDClE8LusJ4qnFEyXG99TCtDtyJnKeixZJqaOarJ6H8bedWIo9R9_qvuFWEeSvHE4eKbPgXAppYzOF_NsB7tbAuSUBB6Ngup1YSM-l3oYpecj5p0G7GJnD7IFjoffBHTch-Smuh-Xq_NE/s1600/Zero0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Column Matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDClE8LusJ4qnFEyXG99TCtDtyJnKeixZJqaOarJ6H8bedWIo9R9_qvuFWEeSvHE4eKbPgXAppYzOF_NsB7tbAuSUBB6Ngup1YSM-l3oYpecj5p0G7GJnD7IFjoffBHTch-Smuh-Xq_NE/s1600/Zero0.png" height="400" title="Column Matrix" width="285" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="color: #b45f06; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Square Matrix:&lt;/b&gt;&lt;/span&gt; &lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;A matrix in which the no. of row is equals to the no. of column is said to be a Square matrix. Thus an m x n matrix is said to be square matrix if &lt;b&gt;m = n &lt;/b&gt;and is known as square matrix of order n.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;For example:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjycjaiATWEy2Pxl-xr6jDYK_7nwo6Tf8WujAJfTEdXkDJVs_9ZNw_-YtBd-oWaEu8lrMjUjqeh_HQnom0Cj5F85las8WHnWvpmLRvplp4kaL0A09VyG-_DtolnJtC7h6d1rHe7vbxBUA/s1600/Zero0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Image of Square matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjycjaiATWEy2Pxl-xr6jDYK_7nwo6Tf8WujAJfTEdXkDJVs_9ZNw_-YtBd-oWaEu8lrMjUjqeh_HQnom0Cj5F85las8WHnWvpmLRvplp4kaL0A09VyG-_DtolnJtC7h6d1rHe7vbxBUA/s1600/Zero0.png" height="186" title="Image of Square matrix" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style="color: #bf9000; font-family: Verdana, sans-serif;"&gt;Code Snippet:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;MatType&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;Row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;Col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;col&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;==&amp;nbsp;1)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"It&amp;nbsp;is&amp;nbsp;a&amp;nbsp;Row&amp;nbsp;matrix."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;==&amp;nbsp;1)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"It&amp;nbsp;is&amp;nbsp;a&amp;nbsp;Column&amp;nbsp;matrix."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;==&amp;nbsp;col)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"It&amp;nbsp;is&amp;nbsp;a&amp;nbsp;Square&amp;nbsp;matrix."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;given&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;the&amp;nbsp;simple&amp;nbsp;matrix."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"The&amp;nbsp;matrix&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j=&amp;nbsp;1&amp;nbsp;;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j=&amp;nbsp;1&amp;nbsp;;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #351c75; font-family: Courier New, Courier, monospace;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #bf9000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #bf9000; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="color: #351c75; font-family: Verdana, sans-serif;"&gt;In the above code we simply check the condition for row matrix, column matrix and square matrix from&lt;b&gt; line 14 to 29.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #bf9000; font-family: Verdana, sans-serif;"&gt;Screenshot of Output:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqEk5MVRgvXrlOCYL1bv4wa1O_KeJ_0OcTKlNEJAH98cYA9Q4tR6PxK8vREnWlKsx3FqCUVZnXW1iQ2n4EfXHvHeReyBEz1PWNbZ-VRisHSQkTXx3JM_LdIt85jpMLEnkNwMBBRCqcmnE/s1600/Zero0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Output of screenshot" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqEk5MVRgvXrlOCYL1bv4wa1O_KeJ_0OcTKlNEJAH98cYA9Q4tR6PxK8vREnWlKsx3FqCUVZnXW1iQ2n4EfXHvHeReyBEz1PWNbZ-VRisHSQkTXx3JM_LdIt85jpMLEnkNwMBBRCqcmnE/s1600/Zero0.png" height="300" title="Output of screenshot" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Read also:&lt;br /&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/zero-matrix-or-null-matrix.html" target="_blank"&gt;Zero matrix in C#&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/2015/03/diagonal-matrix-in-c.html" target="_blank"&gt;Diagonal Matrix in C#.&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://zeroc-sharp.blogspot.in/search/label/Pattern%20Programming" target="_blank"&gt;Pattern programming in C#&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;br /&gt;
&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.com/2015/03/row-column-and-square-matrix-in-c.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/8786536826165856460" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/8786536826165856460" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/row-column-and-square-matrix-in-c.html" rel="alternate" title="Row, Column and Square Matrix in C#" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj5-rklR5jS77QndTpj9qm-VQjXS5n82vukF_AAyoSgHDsl5C2TPwRZ2gFkppH6zjg5Bgp7XzIt8Z91W_XCkwdVIQHylM6FjVep9s3_36YXcoRa9Szvs_yjybwB0kcyEJ4CA54iYWG8BU/s72-c/Zero0.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-5060004247961956318</id><published>2015-03-22T21:46:00.000+05:30</published><updated>2015-03-22T21:46:02.652+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Type of Matrix"/><title type="text">Zero Matrix or null matrix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question : &lt;span style="color: #0b5394;"&gt;Program to check whether the matrix is zero or not.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;A matrix is said to be zero matrix if its &lt;b&gt;all elements are zero&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Sf1MfAfyWV28DN1PWze5Lbb3sRTpFQMbiPheSgk2m3JzjyHRTjp0Fc5IWHP07QgiMBM5T0qtb_4eN4UzMKxuCYrH9CgHTJW7k30Y-PwH8gPtgFIwD1G1BBeeirD5Bd1Zj0WCqmx-l4U/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Image of Zero Matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Sf1MfAfyWV28DN1PWze5Lbb3sRTpFQMbiPheSgk2m3JzjyHRTjp0Fc5IWHP07QgiMBM5T0qtb_4eN4UzMKxuCYrH9CgHTJW7k30Y-PwH8gPtgFIwD1G1BBeeirD5Bd1Zj0WCqmx-l4U/s1600/Untitled.png" height="268" title="Image of Zero Matrix" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;ZeroM&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i,&amp;nbsp;j,&amp;nbsp;row,&amp;nbsp;col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;bool&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;IsZero&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;col=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;Element&amp;nbsp;of&amp;nbsp;matrix:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matA[i,j]&amp;nbsp;!=&amp;nbsp;0)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsZero&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(IsZero&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Zero&amp;nbsp;Matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;Zero&amp;nbsp;Matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;** Complete code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;In the above code first of all we ask user to take input of row and columns and after that user enter the element after entering elements we print the matrix and after the matrix print we go for the logic behind to find put whether the matrix is zero matrix or not.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(matA[i,j]&amp;nbsp;!=&amp;nbsp;0)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsZero&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;break&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;In the above code we check if any of the element of the matrix is not equal to zero than the IsZero which is a bool variable declare at Line 7 of the original code is changed to false.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;After the logical operation we print the final output whether the matrix is zero or not.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(IsZero&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Zero&amp;nbsp;Matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;Zero&amp;nbsp;Matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="line-height: 14px;"&gt;&lt;b&gt;Screenshot of the output:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnnhDKGYQTmb_QmPTNbPVCTw_EKi3pJOPfjQRvYokzb9ZF17EBmsaYryTFak3e6JBIVujkIXU7EiDWGT0ieJ4YgO_hsodHixd2ybJtEb1sB6sTTjkvj82WXflIuumErnA7elEQ0kA9K4o/s1600/Zero0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="output of zero matrix" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnnhDKGYQTmb_QmPTNbPVCTw_EKi3pJOPfjQRvYokzb9ZF17EBmsaYryTFak3e6JBIVujkIXU7EiDWGT0ieJ4YgO_hsodHixd2ybJtEb1sB6sTTjkvj82WXflIuumErnA7elEQ0kA9K4o/s1600/Zero0.png" height="300" title="output of zero matrix" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.com/2015/03/zero-matrix-or-null-matrix.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/5060004247961956318" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/5060004247961956318" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/zero-matrix-or-null-matrix.html" rel="alternate" title="Zero Matrix or null matrix" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Sf1MfAfyWV28DN1PWze5Lbb3sRTpFQMbiPheSgk2m3JzjyHRTjp0Fc5IWHP07QgiMBM5T0qtb_4eN4UzMKxuCYrH9CgHTJW7k30Y-PwH8gPtgFIwD1G1BBeeirD5Bd1Zj0WCqmx-l4U/s72-c/Untitled.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-458970558483476125</id><published>2015-03-22T18:40:00.000+05:30</published><updated>2015-03-22T21:48:01.416+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><category scheme="http://www.blogger.com/atom/ns#" term="Type of Matrix"/><title type="text">Diagonal Matrix in C#</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #351c75; font-family: Georgia, Times New Roman, serif;"&gt;Program to check whether the given matrix is Diagonal or not.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;A matrix is said to be diagonal matrix when it satisfied the following conditions :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;i&gt;Order of matrix&lt;/i&gt; must be same i.e (3x3) or (4x4) or (2x2) and so on.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Matrix is &lt;b&gt;&lt;i&gt;square matrix&lt;/i&gt;&lt;/b&gt; also.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;All the &lt;b&gt;&lt;i&gt;non-diagonal&lt;/i&gt;&lt;/b&gt; element of that matrix is &lt;b&gt;zero&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;the &lt;b&gt;diagonal of the matrix&lt;/b&gt; is the &lt;b&gt;non-zero elements&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;For Example, &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2zlLT6dxZAamqzJbTvzrbACcYfVzvr89r4to_-mfm3dEwZFcT9A4RPZaVSErdbmalJpNcEg3Q78LknB-jc45RwWfInu_bXD_nqNA1fe7hq9NkaIFJrNuwQpeI2SuCBFmGDcm9AYcs1Gw/s1600/Diagmat.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Example of diagonal matrices" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2zlLT6dxZAamqzJbTvzrbACcYfVzvr89r4to_-mfm3dEwZFcT9A4RPZaVSErdbmalJpNcEg3Q78LknB-jc45RwWfInu_bXD_nqNA1fe7hq9NkaIFJrNuwQpeI2SuCBFmGDcm9AYcs1Gw/s1600/Diagmat.png" height="242" title="Example of diagonal matrices" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Diagonal Matrices&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;the above three diagonal matrices are the order of 1,2,3 respectively.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;DiagMat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;bool&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;IsDiag&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;false&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nFor&amp;nbsp;Diagonal&amp;nbsp;Matrix&amp;nbsp;Same&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row&amp;nbsp;and&amp;nbsp;column&amp;nbsp;required."&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row.&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col.&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;col&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="comment" style="background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;"&gt;//&amp;nbsp;enter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;of&amp;nbsp;the&amp;nbsp;matrix&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,j);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="comment" style="background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;"&gt;//&amp;nbsp;Print&amp;nbsp;the&amp;nbsp;matrix&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nMatrix&amp;nbsp;A:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="comment" style="background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;"&gt;//&amp;nbsp;Check&amp;nbsp;weather&amp;nbsp;the&amp;nbsp;matrix&amp;nbsp;is&amp;nbsp;diagonal&amp;nbsp;or&amp;nbsp;not&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;((i&amp;nbsp;!=&amp;nbsp;j)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(matA[i,j]&amp;nbsp;==&amp;nbsp;0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsDiag&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(IsDiag&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Diagonal&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;a&amp;nbsp;Diagonal&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;** Complete code&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;b&gt;&lt;span style="color: #cc0000; font-family: Verdana, sans-serif;"&gt;Description:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;In the above code first of all we enter the no. of row and column of the matrix (which must be equal) in the line 10 to 14 after that we enter element of the matrix from Line 17 to 26 after that we print the entered matrix and after that we check weather the matrix is diagonal or not to do this we take a&lt;b&gt; bool variable IsDiag&lt;/b&gt; and initialize it to false.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;i&amp;lt;=row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;j&amp;lt;=col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;((i&amp;nbsp;!=&amp;nbsp;j)&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;(matA[i,j]&amp;nbsp;==&amp;nbsp;0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsDiag&amp;nbsp;=&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Verdana, sans-serif; font-size: 12px; line-height: 14px;"&gt;We check a condition in Line 05 that if i is not equal to j and if element of matrix matA[i,j] is zero then the IsDiag condition changed to true. when the loop is completed we go for the next step to print the statement, Matrix is diagonal or not. we do this in the following code&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(IsDiag&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;true&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Diagonal&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Not&amp;nbsp;a&amp;nbsp;Diagonal&amp;nbsp;matrix"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style="font-family: Verdana, sans-serif; font-size: 12px; line-height: 14px;"&gt;in the above code if the IsDiag is equals to true thant the matrix is diagonal matrix otherwise it is not a diagonal matrix.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif; font-size: 12px; line-height: 14px;"&gt;&lt;b&gt;Screenshot of output:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi72AxO13sYs8pk-GsrwNcYgPIc9NIR4UKf1lNRaehoig8R75xdRqYlQBaDswAlX0-jZS9HC4ld0tN-XY6cuSAdAVwqmtR6IF_C4TsuRZZxE4wwmGhraApSrQ83TBBtJurXmHs9iTRYn1w/s1600/Diag1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Diagonal matrix screenshot" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi72AxO13sYs8pk-GsrwNcYgPIc9NIR4UKf1lNRaehoig8R75xdRqYlQBaDswAlX0-jZS9HC4ld0tN-XY6cuSAdAVwqmtR6IF_C4TsuRZZxE4wwmGhraApSrQ83TBBtJurXmHs9iTRYn1w/s1600/Diag1.png" height="384" title="Diagonal matrix screenshot" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Screenshot of Output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.in/2015/03/diagonal-matrix-in-c.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/458970558483476125" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/458970558483476125" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/diagonal-matrix-in-c.html" rel="alternate" title="Diagonal Matrix in C#" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2zlLT6dxZAamqzJbTvzrbACcYfVzvr89r4to_-mfm3dEwZFcT9A4RPZaVSErdbmalJpNcEg3Q78LknB-jc45RwWfInu_bXD_nqNA1fe7hq9NkaIFJrNuwQpeI2SuCBFmGDcm9AYcs1Gw/s72-c/Diagmat.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-3945962874032588361</id><published>2015-03-21T09:23:00.003+05:30</published><updated>2015-03-21T09:23:47.603+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matrices and Determinants"/><title type="text">Matrices</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;Definition:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #073763; font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&amp;nbsp;&lt;span style="font-family: Verdana, sans-serif;"&gt;A matrix is an &lt;b&gt;&lt;i&gt;ordered rectangular array of numbers, symbols, expressions and functions&lt;/i&gt;&lt;/b&gt;.The numbers or functions are called elements or the entries of matrix.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;It's also the example of nested loop in programming.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;usually matrices are denoted by capital letters. The following are some examples of matrix :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKVuEKCGLMKpEQfVV0T_2EmqmsHsq1hiVPv361gMSwMDAVWG3USesUChdb1Uyu1U_mCZI2bXVaq3UWcUUmzdvc6KO2cWoaKRQjsSjHHmzjGshz9kswMvL0qvSoDkrqncUMUKJw7J23VRc/s1600/Untitled.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Matrix In C#" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKVuEKCGLMKpEQfVV0T_2EmqmsHsq1hiVPv361gMSwMDAVWG3USesUChdb1Uyu1U_mCZI2bXVaq3UWcUUmzdvc6KO2cWoaKRQjsSjHHmzjGshz9kswMvL0qvSoDkrqncUMUKJw7J23VRc/s1600/Untitled.png" height="400" title="Matrix In C#" width="282" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;Example of Matrix&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;span style="color: #0c343d; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to Show the matrix addition.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style="font-family: Verdana, sans-serif;"&gt;1. In matrix addition, if matrix A and matrix B are in the &lt;b&gt;same order&lt;/b&gt; (row,column). Then, the sum of two matrix is possible.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style="color: #134f5c;"&gt;Matrix C = Matrix A&amp;nbsp;+ Matrix B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for the same order i.e M x N.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;2. Addition of matrices is an example of binary operation on the set of matrices of same order.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Code Snippet:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;MatAdd&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[]&amp;nbsp;args)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;i,&amp;nbsp;j;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row&amp;nbsp;for&amp;nbsp;matrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col&amp;nbsp;for&amp;nbsp;matrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;col&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;matrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A&amp;nbsp;[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matB&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;matrixB:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;B&amp;nbsp;[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matB[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A&amp;nbsp;:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;B&amp;nbsp;:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matB[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matC&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[i,j]&amp;nbsp;=&amp;nbsp;matA[i,j]&amp;nbsp;+&amp;nbsp;matB[i,j];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Addition&amp;nbsp;of&amp;nbsp;matrix&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0:D2}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matC[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #134f5c; font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;In the above code, There are two input of matrix, Matrix A and Matrix B, when we Enter the element of the two matrices Matrix C is formed by the resultant sum of element of the two matrices.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Screenshot of Output:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG8ZHviiCCutAD_aDsmjnOrWs-BSmYyYbQTW4nk_VmgNCdKboQPBEDFsgF0TlhBvoE_ngYieG8HEIfsHlKhSiAObGZy3FdyGDdlpnTFV-Z2ixTkdqsqTGejOtGQZMIHhc8Yrz1V9eAwYw/s1600/Resultant.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of matrix addition" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG8ZHviiCCutAD_aDsmjnOrWs-BSmYyYbQTW4nk_VmgNCdKboQPBEDFsgF0TlhBvoE_ngYieG8HEIfsHlKhSiAObGZy3FdyGDdlpnTFV-Z2ixTkdqsqTGejOtGQZMIHhc8Yrz1V9eAwYw/s1600/Resultant.png" height="456" title="Output of matrix addition" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&amp;nbsp;** Screenshot of Addition of matrix&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Question: Program to show the Matrix subtraction .&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;1. In matrix subtraction, we follow the same rule, if matrix A and matrix B are in the &lt;b&gt;same order (row,column)&lt;/b&gt;. Then , the subtraction of two matrix is possible.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #351c75;"&gt;&lt;b&gt;Matrix C = Matrix A - Matrix B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for the same order i.e M x N.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;2. Subtraction of matrices is an example of binary operation on the set of matrices of same order.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Code snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;MatSub&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main(&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;string&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[]&amp;nbsp;args)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;i,&amp;nbsp;j;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row&amp;nbsp;for&amp;nbsp;matrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;col&amp;nbsp;for&amp;nbsp;matrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;col&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matA&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;matrixA:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matA[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matB&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"\nEnter&amp;nbsp;the&amp;nbsp;element&amp;nbsp;in&amp;nbsp;matrixB:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;B[{0},{1}]:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;i,&amp;nbsp;j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matB[i,j]&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;A&amp;nbsp;:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matA[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Matrix&amp;nbsp;B&amp;nbsp;:"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matB[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[,]&amp;nbsp;matC&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;new&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;[10,10];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matC[i,j]&amp;nbsp;=&amp;nbsp;matA[i,j]&amp;nbsp;-&amp;nbsp;matB[i,j];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Subtraction&amp;nbsp;of&amp;nbsp;matrix&amp;nbsp;is:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;lt;row;&amp;nbsp;i++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(j=0;&amp;nbsp;j&amp;lt;col;&amp;nbsp;j++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;{0:D2}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;matC[i,j]);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="color: #0b5394; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;In the above code, There are two input of matrix, Matrix A and Matrix B, when we Enter the element of the two matrices Matrix C is formed by the resultant subtraction of element of the two matrices.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Screenshot of Output:&lt;/b&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYWQM_tzgYHV99Ac5QKlXsE_WS2NNXd003cY_rBU-fP9IyVpEuSZeXJ6vdGAzEW5SiryzR5TiCKBu4qL5oDmSiytpBJzeAu4TruBvEAodNMzAa-v9OgX0xlke37tY7I7QDY1IXo5Sax48/s1600/Subres.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of matrix subtraction" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYWQM_tzgYHV99Ac5QKlXsE_WS2NNXd003cY_rBU-fP9IyVpEuSZeXJ6vdGAzEW5SiryzR5TiCKBu4qL5oDmSiytpBJzeAu4TruBvEAodNMzAa-v9OgX0xlke37tY7I7QDY1IXo5Sax48/s1600/Subres.png" height="514" title="Output of matrix subtraction" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;**Output of Matrix Subtraction&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;span style="color: #cc0000; font-size: x-small;"&gt;&lt;b&gt;**Note: Program are working on cmd. prompt also&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #cc0000; font-size: x-small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style="color: #cc0000; font-size: x-small;"&gt;&lt;b&gt;Must See:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #cc0000; font-size: x-small;"&gt;&lt;b&gt;&lt;a href="http://zeroc-sharp.blogspot.in/2014/09/1.html" target="_blank"&gt;How and Why Run C# in cmd&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.com/2015/03/matrices.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/3945962874032588361" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/3945962874032588361" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/03/matrices.html" rel="alternate" title="Matrices" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKVuEKCGLMKpEQfVV0T_2EmqmsHsq1hiVPv361gMSwMDAVWG3USesUChdb1Uyu1U_mCZI2bXVaq3UWcUUmzdvc6KO2cWoaKRQjsSjHHmzjGshz9kswMvL0qvSoDkrqncUMUKJw7J23VRc/s72-c/Untitled.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-435761650542774883</id><published>2015-02-11T18:11:00.000+05:30</published><updated>2015-02-11T18:12:45.349+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Star Pattern"/><title type="text">Star Pattern - 8</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #741b47; font-family: Courier New, Courier, monospace;"&gt;Program to print the following Star Pattern.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
* * * * * * * * *&lt;br /&gt;
&amp;nbsp; &amp;nbsp;* * * * * * *&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; * * * * *&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* * *&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* * *&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; * * * * *&lt;br /&gt;
&amp;nbsp; &amp;nbsp;* * * * * * *&lt;br /&gt;
* * * * * * * * *&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,col,n,temp,count;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp=n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count=n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=temp;&amp;nbsp;col&amp;gt;=1;&amp;nbsp;col--)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"*&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;temp-1;&amp;nbsp;col&amp;gt;=1;&amp;nbsp;col--)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"*&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp--;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=2;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;count-1;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"*&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"*&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count--;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJul0fXDwxNRzy8eu4zBmgOGTdMPewDggbD4FH2MMJGLKrl7tp1mLmdKApm8XUJBvP4CTQjKoRFGOxNIPXNBzD3dGFpWmMpYv0EPOCI7ye6M2lz2YG08NaSaMMOFI095zQBHnkmGpmao/s1600/235.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of Program" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJul0fXDwxNRzy8eu4zBmgOGTdMPewDggbD4FH2MMJGLKrl7tp1mLmdKApm8XUJBvP4CTQjKoRFGOxNIPXNBzD3dGFpWmMpYv0EPOCI7ye6M2lz2YG08NaSaMMOFI095zQBHnkmGpmao/s1600/235.png" height="300" title="Output of program" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/02/star-pattern-8.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/435761650542774883" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/435761650542774883" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/02/star-pattern-8.html" rel="alternate" title="Star Pattern - 8" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJul0fXDwxNRzy8eu4zBmgOGTdMPewDggbD4FH2MMJGLKrl7tp1mLmdKApm8XUJBvP4CTQjKoRFGOxNIPXNBzD3dGFpWmMpYv0EPOCI7ye6M2lz2YG08NaSaMMOFI095zQBHnkmGpmao/s72-c/235.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-2477055580301862304</id><published>2015-02-10T07:45:00.002+05:30</published><updated>2015-02-10T07:50:00.415+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number Pattern In C# - 27</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #990000; font-family: Courier New, Courier, monospace;"&gt;Program to print following pattern.&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 5 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 3 4 5 4 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2 3 4 5 4 3 2&lt;br /&gt;
1 2 3 4 5 4 3 2 1&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #f8f8f8; color: #000066; font-family: monospace; font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #000066; font-family: monospace;"&gt;&lt;span style="font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;using System;
public class Pattern
{
 public static void Main()
 {
  int i, j, n, temp, count;

  Console.Write("Enter the no. of row: ");
  n=Convert.ToInt32(Console.ReadLine());
  temp=n;
  count=n;

  for(i=n; i&amp;gt;=1; i--)
  {
   for(j=1; j&amp;lt;temp; j++)
   Console.Write("  ");

   for(j=i; j&amp;lt;=count; j++)
   Console.Write("{0} ",j);
   
   for(j=count-1; j&amp;gt;=i; j--)
   Console.Write("{0} ",j);

   temp--;
  

   Console.WriteLine();
  }

  Console.ReadLine();
 }
}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #000066; font-family: monospace;"&gt;&lt;span style="font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #000066; font-family: monospace;"&gt;&lt;span style="font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAPIUiAAYV0L4ftxbo_0YDs5CH2bcCAzTM1lWzfNBvd2RPmOF7sIPQ9KEMeRMfbfZrZuc8-Vhkx4T8TPqsu7oVPIyj5PVOODFZ3Bq903WkaVmb9NOyR8a9jMrD-NinKsxNXRH82oUcUA/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Screenshot of program" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAPIUiAAYV0L4ftxbo_0YDs5CH2bcCAzTM1lWzfNBvd2RPmOF7sIPQ9KEMeRMfbfZrZuc8-Vhkx4T8TPqsu7oVPIyj5PVOODFZ3Bq903WkaVmb9NOyR8a9jMrD-NinKsxNXRH82oUcUA/s1600/1.png" height="300" title="Screenshot of program" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="color: #009900; font-family: monospace;"&gt;&lt;span style="font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #009900; font-family: monospace;"&gt;&lt;span style="font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #009900; font-family: monospace;"&gt;&lt;span style="font-size: 12px; line-height: 20px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/02/number-pattern-in-c-27.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2477055580301862304" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2477055580301862304" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/02/number-pattern-in-c-27.html" rel="alternate" title="Number Pattern In C# - 27" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAPIUiAAYV0L4ftxbo_0YDs5CH2bcCAzTM1lWzfNBvd2RPmOF7sIPQ9KEMeRMfbfZrZuc8-Vhkx4T8TPqsu7oVPIyj5PVOODFZ3Bq903WkaVmb9NOyR8a9jMrD-NinKsxNXRH82oUcUA/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-2514287125464608398</id><published>2015-02-08T08:37:00.000+05:30</published><updated>2015-02-08T08:39:02.047+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number pattern in C# - 26</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #38761d; font-family: Courier New, Courier, monospace;"&gt;Program to print the binary Right triangle.&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1 0&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1 0 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1 0 1 0&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1 0 1 0 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;row&amp;nbsp;&amp;lt;=&amp;nbsp;n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;nbsp;&amp;lt;=&amp;nbsp;row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;if&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col%2&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"0&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;else&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"1&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4J2ekhXENJBdoaS39imYqFb2YYyWjnJbGp3dIZ8mid5_V2KyyLbmXtjJu-yhawzolPKrAUq9mny5l9FMocquZSsENAaawiWlcAJINoQylra8jolGFuDCcj3X8X-Vv-K57961ceSB9rY/s1600/patter.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of number pattern" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4J2ekhXENJBdoaS39imYqFb2YYyWjnJbGp3dIZ8mid5_V2KyyLbmXtjJu-yhawzolPKrAUq9mny5l9FMocquZSsENAaawiWlcAJINoQylra8jolGFuDCcj3X8X-Vv-K57961ceSB9rY/s1600/patter.png" height="324" title="Output of number pattern" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of Output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/02/number-pattern-in-c-26.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2514287125464608398" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/2514287125464608398" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/02/number-pattern-in-c-26.html" rel="alternate" title="Number pattern in C# - 26" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4J2ekhXENJBdoaS39imYqFb2YYyWjnJbGp3dIZ8mid5_V2KyyLbmXtjJu-yhawzolPKrAUq9mny5l9FMocquZSsENAaawiWlcAJINoQylra8jolGFuDCcj3X8X-Vv-K57961ceSB9rY/s72-c/patter.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-7254362982674118893</id><published>2015-02-07T07:25:00.001+05:30</published><updated>2015-02-07T07:27:09.677+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number Pattern in C# - 25</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #cc0000; font-family: Courier New, Courier, monospace;"&gt;Program to print the following Number Pattern?&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;01&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;02 04&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;03 06 09&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;04 08 12 16&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;05 10 15 20 25&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; list-style-image: initial; list-style-position: initial; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;n,&amp;nbsp;pr;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n&amp;nbsp;=&amp;nbsp;Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;row&amp;nbsp;&amp;lt;=&amp;nbsp;n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pr&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;nbsp;&amp;lt;=&amp;nbsp;row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pr&amp;nbsp;=&amp;nbsp;row*col;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0:D2}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;pr); // convert &lt;b&gt;1 to 01&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCyyIbiuSFbLqA2njyOfNLAbTwPDrWLtF1a6_8U2OzFLA79dx32yoW4kKoiRsko0deEsKJQ5LtYmcCJp0HpZswizgxpjGeHRl2AkAKH7UqjPGLLfkbIyR03YxoEzQ1Pvb-IvBFR1rDVqs/s1600/pattern.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of number pattern in c-sharp." border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCyyIbiuSFbLqA2njyOfNLAbTwPDrWLtF1a6_8U2OzFLA79dx32yoW4kKoiRsko0deEsKJQ5LtYmcCJp0HpZswizgxpjGeHRl2AkAKH7UqjPGLLfkbIyR03YxoEzQ1Pvb-IvBFR1rDVqs/s1600/pattern.png" height="348" title="Output of number pattern in c-sharp." width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/02/number-pattern-in-c-25.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/7254362982674118893" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/7254362982674118893" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/02/number-pattern-in-c-25.html" rel="alternate" title="Number Pattern in C# - 25" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCyyIbiuSFbLqA2njyOfNLAbTwPDrWLtF1a6_8U2OzFLA79dx32yoW4kKoiRsko0deEsKJQ5LtYmcCJp0HpZswizgxpjGeHRl2AkAKH7UqjPGLLfkbIyR03YxoEzQ1Pvb-IvBFR1rDVqs/s72-c/pattern.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-4385155810717683117</id><published>2015-02-01T08:06:00.000+05:30</published><updated>2015-02-01T08:08:32.895+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number Pattern in C# - 24</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Question:&lt;/span&gt; &lt;span style="color: #38761d;"&gt;Program to print the following pattern.&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
5&lt;br /&gt;
4 5&lt;br /&gt;
3 4 5&lt;br /&gt;
2 3 4 5&lt;br /&gt;
1 2 3 4 5&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;th&amp;nbsp;eno.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp=n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;temp;&amp;nbsp;col&amp;lt;=n;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp--;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFPpg-DHq6T803KHd8g_OZykCEzZUHmxXLoazC7hyKalpDNJZQjT3PhcHD6jMAEg7hgkSSas6PL4cZmBZxT5gaDa1fQfI3E72USGs4qIp1jer1UKTLKJg-yaBGEJzSvrT7oRGabCDcSXo/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of Number Pattern" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFPpg-DHq6T803KHd8g_OZykCEzZUHmxXLoazC7hyKalpDNJZQjT3PhcHD6jMAEg7hgkSSas6PL4cZmBZxT5gaDa1fQfI3E72USGs4qIp1jer1UKTLKJg-yaBGEJzSvrT7oRGabCDcSXo/s1600/1.png" height="302" title="Output of Number Pattern" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/01/number-pattern-in-c-24.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4385155810717683117" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4385155810717683117" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/01/number-pattern-in-c-24.html" rel="alternate" title="Number Pattern in C# - 24" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFPpg-DHq6T803KHd8g_OZykCEzZUHmxXLoazC7hyKalpDNJZQjT3PhcHD6jMAEg7hgkSSas6PL4cZmBZxT5gaDa1fQfI3E72USGs4qIp1jer1UKTLKJg-yaBGEJzSvrT7oRGabCDcSXo/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-7699820161205388581</id><published>2015-02-01T07:57:00.000+05:30</published><updated>2015-02-01T07:58:14.745+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number Pattern in C# - 23</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #741b47; font-family: Courier New, Courier, monospace;"&gt;Program to print the following Pattern.&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
9&lt;br /&gt;
8 9 8&lt;br /&gt;
7 8 9 8 7&lt;br /&gt;
6 7 8 9 8 7 6&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;n,&amp;nbsp;temp=9,count;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count=temp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;count;&amp;nbsp;col&amp;lt;=temp;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=temp-1;&amp;nbsp;col&amp;gt;=count;&amp;nbsp;col--)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count--;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGykrmwDG6gfmoHe3JmFmY0yK-roJQ1BmfIOiJOuM5zD3gszgZ_bH5yOKcVznsl3Hd8GQZAUPKXrQhN3KKLULRsGtr69t6pDz0N1k5LZ4cjboz5niXJ7b9absPzCAH8U8XLJL_cGI_UdU/s1600/2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of number pattern" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGykrmwDG6gfmoHe3JmFmY0yK-roJQ1BmfIOiJOuM5zD3gszgZ_bH5yOKcVznsl3Hd8GQZAUPKXrQhN3KKLULRsGtr69t6pDz0N1k5LZ4cjboz5niXJ7b9absPzCAH8U8XLJL_cGI_UdU/s1600/2.png" height="300" title="Output of number pattern" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/01/number-pattern-in-c-23.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/7699820161205388581" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/7699820161205388581" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/01/number-pattern-in-c-23.html" rel="alternate" title="Number Pattern in C# - 23" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGykrmwDG6gfmoHe3JmFmY0yK-roJQ1BmfIOiJOuM5zD3gszgZ_bH5yOKcVznsl3Hd8GQZAUPKXrQhN3KKLULRsGtr69t6pDz0N1k5LZ4cjboz5niXJ7b9absPzCAH8U8XLJL_cGI_UdU/s72-c/2.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-1253374557252102646</id><published>2015-02-01T07:45:00.000+05:30</published><updated>2015-02-01T07:47:19.950+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number Pattern in C# - 22</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #0b5394; font-family: Courier New, Courier, monospace;"&gt;Program to print the following Pattern.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 2 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 3 3 3 3 3&lt;br /&gt;
&amp;nbsp;4 4 4 4 4 4 4&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=n-row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"&amp;nbsp;&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;=row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;col&amp;lt;row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;row);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4wQoZv_hIDizT4TRusb7gipcLBqVDSOFdlt9P3IPT6mTgJuDyx2_bnprC9vijIiRZcNV17it9oIKUj7oDi7n0lOUxyExddYtql6uR6pznf9r0HAC8KDPWeljLxc5uBvaLpL2hnaJUqIw/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of number pattern" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4wQoZv_hIDizT4TRusb7gipcLBqVDSOFdlt9P3IPT6mTgJuDyx2_bnprC9vijIiRZcNV17it9oIKUj7oDi7n0lOUxyExddYtql6uR6pznf9r0HAC8KDPWeljLxc5uBvaLpL2hnaJUqIw/s1600/1.png" height="296" title="Output of number pattern" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of the output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/01/number-pattern-in-c-22.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/1253374557252102646" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/1253374557252102646" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/01/number-pattern-in-c-22.html" rel="alternate" title="Number Pattern in C# - 22" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4wQoZv_hIDizT4TRusb7gipcLBqVDSOFdlt9P3IPT6mTgJuDyx2_bnprC9vijIiRZcNV17it9oIKUj7oDi7n0lOUxyExddYtql6uR6pznf9r0HAC8KDPWeljLxc5uBvaLpL2hnaJUqIw/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-388955226057221377</id><published>2015-02-01T07:33:00.001+05:30</published><updated>2015-02-01T07:34:22.374+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number Pattern in C# - 21</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Question: &lt;/span&gt;&lt;span style="color: #0b5394; font-family: Courier New, Courier, monospace;"&gt;Program to print the following pattern.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
12344321&lt;br /&gt;
123321&lt;br /&gt;
1221&lt;br /&gt;
11&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,&amp;nbsp;col,&amp;nbsp;n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp&amp;nbsp;=&amp;nbsp;n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=n;&amp;nbsp;row&amp;gt;=1;&amp;nbsp;row--)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=temp;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=temp;&amp;nbsp;col&amp;gt;=1;&amp;nbsp;col--)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp--;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-IU_3QAoxDea10Jh1joZeFn-mUxh0HXNSL9Mbqqnlrl2UPpMQAr6O6sR10RKOwPwG7yRsI_-bgtWfhDgYzoRuzbDXpB2Avbj2KOWPSH4RjQDQ4kww37x9jTjqO30Uv_EtC3vnZ96bjP4/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of Number Pattern" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-IU_3QAoxDea10Jh1joZeFn-mUxh0HXNSL9Mbqqnlrl2UPpMQAr6O6sR10RKOwPwG7yRsI_-bgtWfhDgYzoRuzbDXpB2Avbj2KOWPSH4RjQDQ4kww37x9jTjqO30Uv_EtC3vnZ96bjP4/s1600/1.png" height="300" title="Output of Number Pattern" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of Output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;

&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;div class="fb-like" data-href="http://zeroc-sharp.blogspot.in/2015/01/number-pattern-in-c-21.html" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/388955226057221377" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/388955226057221377" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/01/number-pattern-in-c-21.html" rel="alternate" title="Number Pattern in C# - 21" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-IU_3QAoxDea10Jh1joZeFn-mUxh0HXNSL9Mbqqnlrl2UPpMQAr6O6sR10RKOwPwG7yRsI_-bgtWfhDgYzoRuzbDXpB2Avbj2KOWPSH4RjQDQ4kww37x9jTjqO30Uv_EtC3vnZ96bjP4/s72-c/1.png" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-1945920225383659199.post-4391535084614974016</id><published>2015-02-01T07:22:00.000+05:30</published><updated>2015-02-01T07:25:32.130+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Programming"/><title type="text">Number pattern in C# - 20</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;Question:&lt;/span&gt; &lt;span style="color: #741b47; font-family: Courier New, Courier, monospace;"&gt;Program to print the following pattern.&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
1234554321&lt;br /&gt;
1234__4321&lt;br /&gt;
123____321&lt;br /&gt;
12______21&lt;br /&gt;
1________1&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;Code Snippet:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol class="dp-c" start="1" style="background-color: white; border: none; color: #5c5c5c; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; margin: 0px 1px 1px 45px !important; padding: 0px;"&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;using&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;System;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;class&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Pattern&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;public&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;static&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;void&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;Main()&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;row,col,n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"Enter&amp;nbsp;the&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;row:&amp;nbsp;"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;n=Convert.ToInt32(Console.ReadLine());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;int&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;&amp;nbsp;temp=n;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(row=1;&amp;nbsp;row&amp;lt;=n;&amp;nbsp;row++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;col&amp;lt;=temp;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,&amp;nbsp;col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=1;&amp;nbsp;col&amp;lt;row;&amp;nbsp;col++)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"__"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"&gt;for&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;(col=temp;&amp;nbsp;col&amp;gt;=1;&amp;nbsp;col--)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;"&gt;"{0}"&lt;/span&gt;&lt;span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"&gt;,col);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp--;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"&gt;} &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-j4bygcb5lmtcxxJ_o0gp_FeGRkKIIKH7z6mKGpEynB1ioDHtaat9hyYR555S0IwilEBPR1bf2NPMx3uAjmOkfe74wypKEi1RWXD3oepck85TZ_xHSJsGFAd3EzBvzxBy0-kGhGbg51k/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Output of Number Pattern" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-j4bygcb5lmtcxxJ_o0gp_FeGRkKIIKH7z6mKGpEynB1ioDHtaat9hyYR555S0IwilEBPR1bf2NPMx3uAjmOkfe74wypKEi1RWXD3oepck85TZ_xHSJsGFAd3EzBvzxBy0-kGhGbg51k/s1600/1.png" height="302" title="Output of Number Pattern" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Fig: Screenshot of Output&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style="font-family: Consolas, Courier New, Courier, mono, serif;"&gt;&lt;span style="font-size: 12px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;

&lt;br /&gt;
&lt;div class="fb-like" data-action="like" data-href="http://zeroc-sharp.blogspot.in/2015/01/number-pattern-in-c-19.html" data-layout="standard" data-share="true" data-show-faces="true"&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4391535084614974016" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/1945920225383659199/posts/default/4391535084614974016" rel="self" type="application/atom+xml"/><link href="http://zeroc-sharp.blogspot.com/2015/01/number-pattern-in-c-19.html" rel="alternate" title="Number pattern in C# - 20" type="text/html"/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05629830335958516435</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-j4bygcb5lmtcxxJ_o0gp_FeGRkKIIKH7z6mKGpEynB1ioDHtaat9hyYR555S0IwilEBPR1bf2NPMx3uAjmOkfe74wypKEi1RWXD3oepck85TZ_xHSJsGFAd3EzBvzxBy0-kGhGbg51k/s72-c/1.png" width="72"/></entry></feed>