<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8384243628404568372</id><updated>2024-09-06T04:36:22.195+05:30</updated><title type='text'>Programming C Tutorial</title><subtitle type='html'>--------------------------------------------------------------------------------------</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>48</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-629701791528649209</id><published>2011-06-11T14:08:00.001+05:30</published><updated>2011-06-11T14:08:46.751+05:30</updated><title type='text'>REVERSE A NUMBER USING RECURSION IN C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num,rev;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter a number :&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;rev=reverse(num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nAfter reverse the no is :%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,rev);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; sum=0,r;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;reverse&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(num){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;r=num%10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;sum=sum*10+r;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;reverse(num/10);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; sum;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; sum;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/629701791528649209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/reverse-number-using-recursion-in-c.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/629701791528649209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/629701791528649209'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/reverse-number-using-recursion-in-c.html' title='REVERSE A NUMBER USING RECURSION IN C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-6831532012902036385</id><published>2011-06-11T14:07:00.003+05:30</published><updated>2011-06-11T14:07:39.721+05:30</updated><title type='text'>FIND POWER OF A NUMBER USING RECURSION USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; pow,num;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; res;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;power&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter a number: &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter power: &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;pow);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; res=power(num,pow);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n%d to the power %d is: %ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,num,pow,res);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; sum=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;power&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; pow){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i&amp;lt;=pow){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; sum=sum*num;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; power(num,pow-1);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; sum;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/6831532012902036385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-power-of-number-using-recursion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/6831532012902036385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/6831532012902036385'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-power-of-number-using-recursion.html' title='FIND POWER OF A NUMBER USING RECURSION USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-8530235208708737123</id><published>2011-06-11T14:06:00.005+05:30</published><updated>2011-06-11T14:06:59.753+05:30</updated><title type='text'>FIND SUM OF DIGITS OF A NUMBER USING RECURSION USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num,x;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; clrscr();&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter a number: &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; x=findsum(num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Sum of the digits of %d is: %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,num,x);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; r,s;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;findsum&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; n){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(n){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=n%10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s=s+r;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findsum(n/10);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; s;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/8530235208708737123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-sum-of-digits-of-number-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8530235208708737123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8530235208708737123'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-sum-of-digits-of-number-using.html' title='FIND SUM OF DIGITS OF A NUMBER USING RECURSION USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-5726949760996876476</id><published>2011-06-11T14:06:00.001+05:30</published><updated>2011-06-11T14:06:08.713+05:30</updated><title type='text'>FIND GCD OF A NUMBER USING RECURSION IN C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; n1,n2,gcd;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter two numbers: &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;n1,&amp;amp;n2);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;gcd=findgcd(n1,n2);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nGCD of %d and %d is: %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,n1,n2,gcd);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;findgcd&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; x,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; y){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(x!=y){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(x&amp;gt;y)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; findgcd(x-y,y);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&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&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; findgcd(x,y-x);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; x;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/5726949760996876476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-gcd-of-number-using-recursion-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/5726949760996876476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/5726949760996876476'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-gcd-of-number-using-recursion-in-c.html' title='FIND GCD OF A NUMBER USING RECURSION IN C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-7796541889809192450</id><published>2011-06-11T14:05:00.001+05:30</published><updated>2011-06-11T14:05:28.830+05:30</updated><title type='text'>FIND FACTORIAL OF A NUMBER USING RECURSION IN C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num,f;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter a number: &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;f=fact(num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nFactorial of %d is: %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,num,f);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;fact&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; n){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(n==1)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(n*fact(n-1));&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/7796541889809192450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-factorial-of-number-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/7796541889809192450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/7796541889809192450'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-factorial-of-number-using.html' title='FIND FACTORIAL OF A NUMBER USING RECURSION IN C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-8559869876280419623</id><published>2011-06-11T14:04:00.002+05:30</published><updated>2011-06-11T14:04:35.220+05:30</updated><title type='text'>BINARY SEARCH THROUGH RECURSSION USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[10],i,n,m,c,l,u;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the size of an array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the elements of the array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;n;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe elements of an array are-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;n;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot; %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the number to be search-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;m);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;l=0,u=n-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;c=binary(a,n,m,l,u);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(c==0)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe number is not in the list&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe number is found&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;binary&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[],&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; n,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; m,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; l,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; u){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; mid,c=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(l&amp;lt;=u){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;mid=(l+u)/2;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(m==a[mid]){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;c=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;(m&amp;lt;a[mid]){&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; binary(a,n,m,l,mid-1);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; binary(a,n,m,mid+1,u);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; c;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/8559869876280419623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/binary-search-through-recurssion-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8559869876280419623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8559869876280419623'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/binary-search-through-recurssion-using.html' title='BINARY SEARCH THROUGH RECURSSION USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-4513737331499487036</id><published>2011-06-11T14:02:00.002+05:30</published><updated>2011-06-11T14:02:50.852+05:30</updated><title type='text'>BINARY SEARCH USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[10],i,n,m,c=0,l,u,mid;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the size of an array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the elements of the array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;n;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe elements of an array are-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;n;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot; %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the number to be search-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;m);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;l=0,u=n-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(l&amp;lt;=u){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;mid=(l+u)/2;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(m==a[mid]){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;c=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;break&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(m&amp;lt;a[mid]){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;u=mid-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;l=mid+1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(c==0)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe number is not in the list&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe number is found&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/4513737331499487036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/binary-search-using-c-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4513737331499487036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4513737331499487036'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/binary-search-using-c-program.html' title='BINARY SEARCH USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-4630024246823852494</id><published>2011-06-11T13:59:00.002+05:30</published><updated>2011-06-11T13:59:33.145+05:30</updated><title type='text'>C programming questions and answer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[10],i,n,m,c=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the size of an array&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the elements of the array&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;=n-1;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe elements of an array are&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;=n-1;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot; %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the number to be search&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;m);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;=n-1;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(a[i]==m){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 1in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;c=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 1in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;break&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(c==0)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe number is not in the list&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe number is found&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/4630024246823852494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/c-programming-questions-and-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4630024246823852494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4630024246823852494'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/c-programming-questions-and-answer.html' title='C programming questions and answer'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-8298306002126438443</id><published>2011-06-11T13:58:00.002+05:30</published><updated>2011-06-11T13:58:36.844+05:30</updated><title type='text'>Division of large numbers in c</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#define&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; MAX 10000&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; * &lt;b&gt;division&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; [],&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;unsigned&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;unsigned&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; *c;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the divdend : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%s&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the divisor : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%lu&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c = division(a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nQuotient of the division : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%s&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,c);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; * &lt;b&gt;division&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[],&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;unsigned&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; b){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;static&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; c[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; la;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i,k=0,flag=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;unsigned&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; temp=1,reminder;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;la=strlen(a);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;=la;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a[i] = a[i] - 48;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;temp = a[0];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;reminder = a[0];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=1;i&amp;lt;=la;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(b&amp;lt;=temp){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;c[k++] = temp/b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;temp = temp % b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;reminder = temp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;temp =temp*10 + a[i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;flag=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;reminder = temp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;temp =temp*10 + a[i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(flag==1)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;c[k++] = 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;k;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c[i]=c[i]+48;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c[i]= &lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Reminder of division:&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%lu&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,reminder);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; c;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/8298306002126438443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/division-of-large-numbers-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8298306002126438443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8298306002126438443'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/division-of-large-numbers-in-c.html' title='Division of large numbers in c'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-4435787659854599288</id><published>2011-06-11T13:57:00.001+05:30</published><updated>2011-06-11T13:57:38.230+05:30</updated><title type='text'>Multiplication of large numbers in c</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#define&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; MAX 10000&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; * &lt;b&gt;multiply&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; [],&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;[]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; b[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; *c;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; la,lb;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the first number : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%s&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the second number : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%s&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Multiplication of two numbers : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c = multiply(a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%s&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,c);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; * &lt;b&gt;multiply&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[],&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; b[]){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;static&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; mul[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; c[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; temp[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; la,lb;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i,j,k=0,x=0,y;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; r=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; sum = 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;la=strlen(a)-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;lb=strlen(b)-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;=la;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;a[i] = a[i] - 48;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;=lb;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;b[i] = b[i] - 48;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=lb;i&amp;gt;=0;i--){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;r=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=la;j&amp;gt;=0;j--){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;temp[k++] = (b[i]*a[j] + r)%10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;r = (b[i]*a[j]+r)/10; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;temp[k++] = r;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;x++;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(y = 0;y&amp;lt;x;y++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;temp[k++] = 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;k=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;r=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;la+lb+2;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;sum =0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;y=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=1;j&amp;lt;=lb+1;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i &amp;lt;= la+j){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;sum = sum + temp[y+i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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;y += j + la + 1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c[k++] = (sum+r) %10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;r = (sum+r)/10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c[k] = r;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;j=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=k-1;i&amp;gt;=0;i--){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;mul[j++]=c[i] + 48;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;mul[j]=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; mul;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/4435787659854599288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/multiplication-of-large-numbers-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4435787659854599288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4435787659854599288'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/multiplication-of-large-numbers-in-c.html' title='Multiplication of large numbers in c'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-4298923317050619339</id><published>2011-06-11T13:56:00.003+05:30</published><updated>2011-06-11T13:56:19.516+05:30</updated><title type='text'>Factorial of 100 in c</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#define&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; MAX 10000 &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;factorialof&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;multiply&lt;/b&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; length = 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; fact[MAX];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter any integer number : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;fact[0]=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;factorialof(num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Factorial is : &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=length;i&amp;gt;=0;i--){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,fact[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/4298923317050619339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/factorial-of-100-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4298923317050619339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4298923317050619339'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/factorial-of-100-in-c.html' title='Factorial of 100 in c'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-7609845387861637801</id><published>2011-06-10T11:47:00.001+05:30</published><updated>2011-06-10T11:47:17.092+05:30</updated><title type='text'>Write a c program to find out transport of a matrix</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[10][10],b[10][10],i,j,k=0,m,n;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the row and column of matrix&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;m,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the First matrix-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;m;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b[i][j]=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b[i][j]=a[j][i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n\nTraspose of a matrix is -&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;m;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/7609845387861637801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/write-c-program-to-find-out-transport.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/7609845387861637801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/7609845387861637801'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/write-c-program-to-find-out-transport.html' title='Write a c program to find out transport of a matrix'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-5787070127024563077</id><published>2011-06-10T11:46:00.000+05:30</published><updated>2011-06-10T11:46:35.937+05:30</updated><title type='text'>FIND OUT SUM OF DIAGONAL ELEMENTS OF A MATRIX USING</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[10][10],i,j,sum=0,m,n;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the row and column of matrix&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;m,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the First matrix-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;m;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i==j)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&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=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;sum=sum+a[i][j];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n\nSum of the diagonal elements of a matrix is -&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,sum);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/5787070127024563077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-out-sum-of-diagonal-elements-of.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/5787070127024563077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/5787070127024563077'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/find-out-sum-of-diagonal-elements-of.html' title='FIND OUT SUM OF DIAGONAL ELEMENTS OF A MATRIX USING'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-6233544760866259069</id><published>2011-06-10T11:44:00.001+05:30</published><updated>2011-06-10T11:44:33.888+05:30</updated><title type='text'>MULTIPLICATION OF TWO MATRICES USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[5][5],b[5][5],c[5][5],i,j,k,sum=0,m,n,o,p;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the row and column of first matrix&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;m,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the row and column of second matrix&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;o,&amp;amp;p);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(n!=o){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Matrix mutiplication is not possible&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nColumn of first matrix must be same as row of second matrix&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the First matrix-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the Second matrix-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;o;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;p;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;b[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe First matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;n;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe Second matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;o;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;p;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;p;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;c[i][j]=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){ &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//row of first matrix&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;p;j++){&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//column of second matrix&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;sum=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(k=0;k&amp;lt;n;k++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;sum=sum+a[i][k]*b[k][j];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;c[i][j]=sum;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe multiplication of two matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;m;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;p;j++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,c[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/6233544760866259069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/multiplication-of-two-matrices-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/6233544760866259069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/6233544760866259069'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/multiplication-of-two-matrices-using-c.html' title='MULTIPLICATION OF TWO MATRICES USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-6822470392280204141</id><published>2011-06-10T11:43:00.001+05:30</published><updated>2011-06-10T11:43:47.246+05:30</updated><title type='text'>ADDITION OF TWO MATRICES USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[3][3],b[3][3],c[3][3],i,j;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter the First matrix-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter the Second matrix-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;b[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe First matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;3;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe Second matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;3;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;3;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;c[i][j]=a[i][j]+b[i][j];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe Addition of two matrix is\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;3;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,c[i][j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/6822470392280204141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/addition-of-two-matrices-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/6822470392280204141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/6822470392280204141'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/addition-of-two-matrices-using-c.html' title='ADDITION OF TWO MATRICES USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-8857754507544233100</id><published>2011-06-10T11:41:00.002+05:30</published><updated>2011-06-10T11:41:58.308+05:30</updated><title type='text'>CONVERSION OF FAREHNITE TO CENTIGRADE USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; no,n=0,j=1,rem,no1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter any number any binary form-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;no);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;no1=no;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(no!=0){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;rem=no%10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;n=n+rem*j;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;j=j*2;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;no=no/10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe value of binary no. %ld is -&amp;gt;%ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,no1,n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/8857754507544233100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-of-farehnite-to-centigrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8857754507544233100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8857754507544233100'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-of-farehnite-to-centigrade.html' title='CONVERSION OF FAREHNITE TO CENTIGRADE USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-4056872403642595589</id><published>2011-06-10T11:41:00.000+05:30</published><updated>2011-06-10T11:41:36.327+05:30</updated><title type='text'>CONVERSION OF DECIMAL TO BINARY USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; m,no=0,a=1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; n,rem;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter any decimal number-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;m=n;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(n!=0){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;rem=n%2;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;no=no+rem*a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;n=n/2;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a*10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;The value %ld in binary is-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,m);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,no);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/4056872403642595589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-of-decimal-to-binary-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4056872403642595589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4056872403642595589'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-of-decimal-to-binary-using-c.html' title='CONVERSION OF DECIMAL TO BINARY USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-3631374706887095928</id><published>2011-06-10T11:40:00.001+05:30</published><updated>2011-06-10T11:40:14.252+05:30</updated><title type='text'>CONVERSION FROM DECIMAL TO OCTAL USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i=0,j=0,rem=0,a[10],b[10];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; num;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter a number :&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;num);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(num){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(num&amp;lt;8){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a[j++]=num;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;break&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a[j++]=num%8;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num=num/8;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=j-1;i&amp;gt;=0;i--)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp; b[rem++]=a[i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nOctal equivalent :&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(j=0;j&amp;lt;rem;j++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp; printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[j]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/3631374706887095928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-from-decimal-to-octal-using_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/3631374706887095928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/3631374706887095928'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-from-decimal-to-octal-using_09.html' title='CONVERSION FROM DECIMAL TO OCTAL USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-1107537595585053871</id><published>2011-06-10T11:39:00.001+05:30</published><updated>2011-06-10T11:39:33.568+05:30</updated><title type='text'>CONVERSION FROM DECIMAL TO OCTAL USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; no,n=0,j=1,rem,no1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter any number any binary form-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;no);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;no1=no;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(no!=0){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;rem=no%10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;n=n+rem*j;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;j=j*2;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;no=no/10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nThe value of binary no. %ld is -&amp;gt;%ld&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,no1,n);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/1107537595585053871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-from-decimal-to-octal-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/1107537595585053871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/1107537595585053871'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/conversion-from-decimal-to-octal-using.html' title='CONVERSION FROM DECIMAL TO OCTAL USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-2476453395743899463</id><published>2011-06-10T11:38:00.001+05:30</published><updated>2011-06-10T11:38:58.666+05:30</updated><title type='text'>SWAPPING OF STRINGS USING C PROGRAM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; i=0,j=0,k=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; str1[20],str2[20],temp[20];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;puts(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter first string&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;gets(str1);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;puts(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter second string&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;gets(str2);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Before swaping the strings are\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;puts(str1);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;puts(str2);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(str1[i]!=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&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;temp[j++]=str1[i++];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;temp[j]=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;i=0,j=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(str2[i]!=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&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;str1[j++]=str2[i++];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;str1[j]=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;i=0,j=0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;while&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(temp[i]!=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&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;str2[j++]=temp[i++];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;str2[j]=&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&#39;\0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;After swaping the strings are\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;puts(str1);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;puts(str2);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/2476453395743899463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/swapping-of-strings-using-c-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/2476453395743899463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/2476453395743899463'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/swapping-of-strings-using-c-program.html' title='SWAPPING OF STRINGS USING C PROGRAM'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-4806308267186769646</id><published>2011-06-10T11:37:00.000+05:30</published><updated>2011-06-10T11:37:27.729+05:30</updated><title type='text'>Write a c program for swapping of two arrays</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a[10],b[10],c[10],i;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Enter First array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter Second array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;b[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Arrays before swapping&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nFirst array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nSecond array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//write any swapping technique&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;c[i]=a[i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;a[i]=b[i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;b[i]=c[i];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nArrays after swapping&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nFirst array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nSecond array-&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=0;i&amp;lt;10;i++){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&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;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,b[i]);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/4806308267186769646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/write-c-program-for-swapping-of-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4806308267186769646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/4806308267186769646'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/write-c-program-for-swapping-of-two.html' title='Write a c program for swapping of two arrays'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-811402170186673049</id><published>2011-06-10T11:35:00.001+05:30</published><updated>2011-06-10T11:35:40.810+05:30</updated><title type='text'>SWAP TWO VARIABLES WITHOUT USING THIRD USING C PROGRAM VARIABLE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a,b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter two numbers:&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a,&amp;amp;b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nBefore swapping a=%d b=%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=b^a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nAfter swapping a=%d b=%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;Swapping of two number&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a=5,b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process one&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b+a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=a-b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a-b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;a= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process two&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a+b-(b=a);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process three&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b^a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process four&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b-~a-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=a+~b+1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a+~b+1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process five&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5,&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b+a,b=a-b,a=a-b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;getch();&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/811402170186673049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/swap-two-variables-without-using-third_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/811402170186673049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/811402170186673049'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/swap-two-variables-without-using-third_09.html' title='SWAP TWO VARIABLES WITHOUT USING THIRD USING C PROGRAM VARIABLE'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-150786095900328526</id><published>2011-06-10T11:33:00.000+05:30</published><updated>2011-06-10T11:33:12.262+05:30</updated><title type='text'>SWAP TWO VARIABLES WITHOUT USING THIRD USING C PROGRAM VARIABLE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;border-bottom: transparent 0px solid; border-left: transparent 0px solid; border-right: transparent 0px solid; border-top: transparent 0px solid; float: none; height: auto; margin: 0px auto 1px; max-width: 1000px; min-width: 1000px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: auto;&quot;&gt;&lt;div style=&quot;left: 0px; margin: 0px; position: relative; top: 0px;&quot;&gt;&lt;div r=&quot;10&quot; s=&quot;5028&quot; style=&quot;bottom: -10px; left: -10px; position: absolute; right: -10px; top: -10px; visibility: visible; z-index: -9998;&quot; t=&quot;10&quot; u=&quot;1000&quot;&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;shape style=&quot;height: 5077px; left: 0px; position: absolute; top: 0px; width: 1020px;&quot;&gt;&lt;stroke&gt;&lt;/stroke&gt;&lt;/shape&gt;&lt;/div&gt;&lt;div class=&quot;content-outer&quot; closure_uid_4yohhv=&quot;1&quot; style=&quot;background: none transparent scroll repeat 0% 0%; border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; left: 0px; margin: 0px; position: relative; top: 0px;&quot;&gt;&lt;div class=&quot;content-cap-top cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left content-fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right content-fauxborder-right&quot;&gt;&lt;/div&gt;&lt;div class=&quot;content-inner&quot;&gt;&lt;header&gt;&lt;div class=&quot;header-outer&quot;&gt;&lt;div class=&quot;header-cap-top cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left header-fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right header-fauxborder-right&quot;&gt;&lt;/div&gt;&lt;div class=&quot;region-inner header-inner&quot;&gt;&lt;div class=&quot;header section&quot; id=&quot;header&quot;&gt;&lt;div class=&quot;widget Header&quot; id=&quot;Header1&quot;&gt;&lt;div closure_uid_4yohhv=&quot;2&quot; id=&quot;header-inner&quot;&gt;&lt;div class=&quot;titlewrapper&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;&lt;a href=&quot;http://cquestionbank.blogspot.com/&quot;&gt;&lt;span style=&quot;color: #c18787;&quot;&gt;C programming questions and answer&lt;/span&gt;&lt;/a&gt; &lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;descriptionwrapper&quot;&gt;&lt;div class=&quot;description&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;header-cap-bottom cap-bottom&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/header&gt;&lt;div class=&quot;tabs-outer&quot;&gt;&lt;div class=&quot;tabs-cap-top cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left tabs-fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right tabs-fauxborder-right&quot;&gt;&lt;/div&gt;&lt;div class=&quot;region-inner tabs-inner&quot;&gt;&lt;div class=&quot;tabs section&quot; id=&quot;crosscol&quot;&gt;&lt;/div&gt;&lt;div class=&quot;tabs section&quot; id=&quot;crosscol-overflow&quot;&gt;&lt;div class=&quot;widget HTML&quot; id=&quot;HTML11&quot;&gt;&lt;div class=&quot;widget-content&quot;&gt;&lt;fieldset style=&quot;background: #1e90ff;&quot;&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-0153514538688941&quot;;
google_ad_host = &quot;pub-1556223355139109&quot;;
google_ad_host_channel=&quot;00000+00031&quot;;
/* QLinkTop */
google_ad_slot = &quot;8396842244&quot;;
google_ad_width = 728;
google_ad_height = 15;
//--&gt;
&lt;/script&gt;&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;ins style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; display: inline-table; height: 15px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 728px;&quot;&gt;&lt;ins id=&quot;aswift_0_anchor&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; display: block; height: 15px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 728px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;15&quot; id=&quot;aswift_0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_0&quot; onload=&quot;var i=this.id,s=window.google_iframe_oncopy,H=s&amp;amp;&amp;amp;s.handlers,h=H&amp;amp;&amp;amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;amp;&amp;amp;d&amp;amp;&amp;amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;amp;&amp;amp;s.log.push(i)}&quot; scrolling=&quot;no&quot; style=&quot;left: 0px; position: absolute; top: 0px;&quot; width=&quot;728&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/center&gt;&lt;/fieldset&gt;&lt;/div&gt;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;span class=&quot;widget-item-control&quot;&gt;&lt;span class=&quot;item-control blog-admin&quot;&gt;&lt;a class=&quot;quickedit&quot; href=&quot;http://www.blogger.com/rearrange?blogID=959939550345671470&amp;amp;widgetType=HTML&amp;amp;widgetId=HTML11&amp;amp;action=editWidget&amp;amp;sectionId=crosscol-overflow&quot; onclick=&quot;return _WidgetManager._PopupConfig(document.getElementById(&amp;quot;HTML11&amp;quot;));&quot; target=&quot;configHTML11&quot; title=&quot;Edit&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;18px&quot; src=&quot;http://img1.blogblog.com/img/icon18_wrench_allbkg.png&quot; width=&quot;18px&quot; /&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;clear&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;tabs-cap-bottom cap-bottom&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;main-outer&quot;&gt;&lt;div class=&quot;main-cap-top cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left main-fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right main-fauxborder-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;region-inner main-inner&quot;&gt;&lt;div class=&quot;columns fauxcolumns&quot;&gt;&lt;div class=&quot;fauxcolumn-outer fauxcolumn-center-outer&quot;&gt;&lt;div class=&quot;cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;fauxcolumn-inner&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cap-bottom&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxcolumn-outer fauxcolumn-left-outer&quot;&gt;&lt;div class=&quot;cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;fauxcolumn-inner&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cap-bottom&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxcolumn-outer fauxcolumn-right-outer&quot;&gt;&lt;div class=&quot;cap-top&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;fauxborder-left&quot;&gt;&lt;div class=&quot;fauxborder-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;fauxcolumn-inner&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cap-bottom&quot;&gt;&lt;div class=&quot;cap-left&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;cap-right&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- corrects IE6 width calculation --&gt;&lt;div class=&quot;columns-inner&quot;&gt;&lt;div class=&quot;column-center-outer&quot;&gt;&lt;div class=&quot;column-center-inner&quot;&gt;&lt;div class=&quot;main section&quot; id=&quot;main&quot;&gt;&lt;div class=&quot;widget HTML&quot; id=&quot;HTML7&quot;&gt;&lt;div class=&quot;widget-content&quot;&gt;&lt;b&gt;C ,C++, Advance C Search Engine&lt;/b&gt; &lt;form action=&quot;http://www.google.co.in/cse&quot; id=&quot;cse-search-box&quot; target=&quot;_blank&quot;&gt;&lt;div&gt;&lt;input name=&quot;cx&quot; type=&quot;hidden&quot; /&gt; &lt;input name=&quot;ie&quot; type=&quot;hidden&quot; /&gt; &lt;input name=&quot;q&quot; size=&quot;60&quot; style=&quot;background: url(http://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif) #ffffff no-repeat left 50%; border-bottom: #7e9db9 1px solid; border-left: #7e9db9 1px solid; border-right: #7e9db9 1px solid; border-top: #7e9db9 1px solid; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;&quot; /&gt; &lt;input name=&quot;sa&quot; type=&quot;submit&quot; /&gt; &lt;/div&gt;&lt;input name=&quot;siteurl&quot; type=&quot;hidden&quot; /&gt;&lt;input name=&quot;siteurl&quot; type=&quot;hidden&quot; /&gt;&lt;input name=&quot;siteurl&quot; type=&quot;hidden&quot; /&gt;&lt;/form&gt;&lt;script src=&quot;http://www.google.co.in/cse/brand?form=cse-search-box&amp;amp;lang=en&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;Java, Reasoning, Aptitude, Ebooks Search Engine&lt;/b&gt; &lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;cse-search-box&quot; target=&quot;_blank&quot;&gt;&lt;div&gt;&lt;input name=&quot;cx&quot; type=&quot;hidden&quot; /&gt; &lt;input name=&quot;ie&quot; type=&quot;hidden&quot; /&gt; &lt;input name=&quot;q&quot; size=&quot;60&quot; /&gt; &lt;input name=&quot;sa&quot; type=&quot;submit&quot; /&gt; &lt;/div&gt;&lt;/form&gt;&lt;script src=&quot;http://www.google.com/cse/brand?form=cse-search-box&amp;amp;lang=en&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;span class=&quot;widget-item-control&quot;&gt;&lt;span class=&quot;item-control blog-admin&quot;&gt;&lt;a class=&quot;quickedit&quot; href=&quot;http://www.blogger.com/rearrange?blogID=959939550345671470&amp;amp;widgetType=HTML&amp;amp;widgetId=HTML7&amp;amp;action=editWidget&amp;amp;sectionId=main&quot; onclick=&quot;return _WidgetManager._PopupConfig(document.getElementById(&amp;quot;HTML7&amp;quot;));&quot; target=&quot;configHTML7&quot; title=&quot;Edit&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;18px&quot; src=&quot;http://img1.blogblog.com/img/icon18_wrench_allbkg.png&quot; width=&quot;18px&quot; /&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;clear&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;widget HTML&quot; id=&quot;HTML5&quot;&gt;&lt;div class=&quot;widget-content&quot;&gt;&lt;!-- Place this tag where you want the +1 button to render --&gt;&lt;div id=&quot;___plusone_1&quot; style=&quot;display: inline-block; height: 24px; width: 98px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; id=&quot;I2_1307266317140&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;I2_1307266317140&quot; scrolling=&quot;no&quot; src=&quot;https://plusone.google.com/u/0/_/+1/button?hl=en-US&amp;amp;jsh=r%3Bgc%2F21659868-acf476cc#url=http%3A%2F%2Fcquestionbank.blogspot.com%2F2008%2F01%2Fwrite-c-program-for-swap-two-variables.html&amp;amp;size=standard&amp;amp;count=true&amp;amp;id=I2_1307266317140&amp;amp;parent=http%3A%2F%2Fcquestionbank.blogspot.com&amp;amp;rpctoken=773671920&amp;amp;_methods=_ready%2C_close%2C_open%2C_resizeMe&quot; style=&quot;height: 24px; left: 0px; position: static; top: 0px; visibility: visible; width: 98px;&quot; tabindex=&quot;-1&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;clear&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;widget-item-control&quot;&gt;&lt;span class=&quot;item-control blog-admin&quot;&gt;&lt;a class=&quot;quickedit&quot; href=&quot;http://www.blogger.com/rearrange?blogID=959939550345671470&amp;amp;widgetType=HTML&amp;amp;widgetId=HTML5&amp;amp;action=editWidget&amp;amp;sectionId=main&quot; onclick=&quot;return _WidgetManager._PopupConfig(document.getElementById(&amp;quot;HTML5&amp;quot;));&quot; target=&quot;configHTML5&quot; title=&quot;Edit&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;18px&quot; src=&quot;http://img1.blogblog.com/img/icon18_wrench_allbkg.png&quot; width=&quot;18px&quot; /&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;clear&quot;&gt;&lt;span style=&quot;color: #2288bb;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;widget Blog&quot; id=&quot;Blog1&quot;&gt;&lt;div class=&quot;blog-posts hfeed&quot;&gt;&lt;!-- google_ad_section_start(name=default) --&gt;&lt;div class=&quot;date-outer&quot;&gt;&lt;div class=&quot;date-posts&quot;&gt;&lt;div class=&quot;post-outer&quot;&gt;&lt;div class=&quot;post hentry&quot;&gt;&lt;a href=&quot;&quot; name=&quot;3073104174167778152&quot;&gt;&lt;/a&gt;&lt;h3 class=&quot;post-title entry-title&quot;&gt;SWAP TWO VARIABLES WITHOUT USING THIRD USING C PROGRAM VARIABLE &lt;/h3&gt;&lt;div class=&quot;post-header&quot;&gt;&lt;div class=&quot;post-header-line-1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-0153514538688941&quot;;
google_ad_host=&quot;pub-1556223355139109&quot;;
google_ad_host_channel=&quot;00000+00031&quot;;
/* QTop */
google_ad_slot = &quot;8134343595&quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&gt;
&lt;/script&gt;&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;ins style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; display: inline-table; height: 280px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 336px;&quot;&gt;&lt;ins id=&quot;aswift_1_anchor&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; display: block; height: 280px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 336px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;280&quot; id=&quot;aswift_1&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_1&quot; onload=&quot;var i=this.id,s=window.google_iframe_oncopy,H=s&amp;amp;&amp;amp;s.handlers,h=H&amp;amp;&amp;amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;amp;&amp;amp;d&amp;amp;&amp;amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;amp;&amp;amp;s.log.push(i)}&quot; scrolling=&quot;no&quot; style=&quot;left: 0px; position: absolute; top: 0px;&quot; width=&quot;336&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;style type=&quot;text/css&quot;&gt;
.fieldsetOut {
 PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: &quot;courier new&quot;; BACKGROUND: #1e90ff; PADDING-TOP: 0px
}
.fieldsetIn {
 BORDER-BOTTOM-STYLE: none; BORDER-BOTTOM-COLOR: ; PADDING-BOTTOM: 1px; BORDER-RIGHT-STYLE: none; BORDER-TOP-COLOR: ; MARGIN: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; BORDER-TOP-STYLE: none; BACKGROUND: white; BORDER-RIGHT-COLOR: ; BORDER-LEFT-STYLE: none; BORDER-LEFT-COLOR: ; PADDING-TOP: 1px
}
.explanation {
 COLOR: #800000; FONT-SIZE: 25px; FONT-WEIGHT: 900
}
&lt;/style&gt;&lt;br /&gt;
&lt;fieldset class=&quot;fieldsetOut&quot;&gt;&lt;fieldset class=&quot;fieldsetIn&quot;&gt;&lt;hr color=&quot;#1e90ff&quot; /&gt;&lt;hr color=&quot;#1e90ff&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a,b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nEnter two numbers:&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;a,&amp;amp;b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nBefore swapping a=%d b=%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=b^a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nAfter swapping a=%d b=%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; 0;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;Swapping of two number&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; &lt;b&gt;main&lt;/b&gt;(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; a=5,b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process one&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b+a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=a-b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a-b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;a= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process two&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a+b-(b=a);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process three&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=a^b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b^a;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process four&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b-~a-1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=a+~b+1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=a+~b+1;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;//process five&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=5,&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;b=10;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;a=b+a,b=a-b,a=a-b;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\na= %d&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;b=&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,a,b);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;getch();&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/fieldset&gt;&lt;/fieldset&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/150786095900328526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/swap-two-variables-without-using-third.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/150786095900328526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/150786095900328526'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/swap-two-variables-without-using-third.html' title='SWAP TWO VARIABLES WITHOUT USING THIRD USING C PROGRAM VARIABLE'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-7302554298582443359</id><published>2011-06-10T11:30:00.001+05:30</published><updated>2011-06-10T11:30:09.386+05:30</updated><title type='text'>Logic of HCF or GCD of any two numbers:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;In HCF we try to find any largest number which can divide both the number.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;For example: HCF or GCD of 20 and 30&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;Both number 20 and 30 are divisible by 1, 2,5,10.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;HCF=max (1, 2, 3, 4, 10) =10&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;Logic &lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;for&lt;/span&gt; writing program:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;It is clear that any number is not divisible by more than that number. In &lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;case&lt;/span&gt; of more than one number s, a possible maximum number which can divide all of the number s must be minimum of all of that numbers.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;For example: 10, 20, and 30&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;Min (10, 20, 30) =10 can divide all there numbers. So we will take one &lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;for&lt;/span&gt; loop which will start form min of the numbers and will stop the loop when it became one, since all numbers are divisible by one. Inside &lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;for&lt;/span&gt; loop we will write one &lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;if&lt;/span&gt; conditions which will check divisibility of both the numbers.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/7302554298582443359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/logic-of-hcf-or-gcd-of-any-two-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/7302554298582443359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/7302554298582443359'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/logic-of-hcf-or-gcd-of-any-two-numbers.html' title='Logic of HCF or GCD of any two numbers:'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8384243628404568372.post-8234189585968738121</id><published>2011-06-10T11:29:00.001+05:30</published><updated>2011-06-10T11:29:41.433+05:30</updated><title type='text'>Write a c program to find out H.C.F. of two numbers.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;#include&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; main(){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt; x,y,m,i;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;Insert any two number: &quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;scanf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;%d%d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,&amp;amp;x,&amp;amp;y);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;m=x&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(i=m;i&amp;gt;=1;i--){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;(x%i==0&amp;amp;&amp;amp;y%i==0){&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 1in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;printf(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&quot;\nHCF of two number is : %d&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;,i) ;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 1in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;break&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0in 0.5in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;return &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 14pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ctutorialbyjay.blogspot.com/feeds/8234189585968738121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/write-c-program-to-find-out-hcf-of-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8234189585968738121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8384243628404568372/posts/default/8234189585968738121'/><link rel='alternate' type='text/html' href='http://ctutorialbyjay.blogspot.com/2011/06/write-c-program-to-find-out-hcf-of-two.html' title='Write a c program to find out H.C.F. of two numbers.'/><author><name>Jay Raiyani</name><uri>http://www.blogger.com/profile/00191084583885189575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGli8kgorzbAjDhKIbFIVyDj562nBJKFlgvIauoxKqwbCODyUEPLDJAnOTkT2A4G2J6177m08k7eTNM6OEOSNhoBi5gDvMRPqJ9Vrulag-h3MLBIIfiW-xsQ1xN9b7cLA/s220/Jay+-+Do+You.jpg'/></author><thr:total>0</thr:total></entry></feed>