<?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-1905601010453579024</id><updated>2025-07-26T13:26:42.191+05:30</updated><category term="C-programming"/><category term="C"/><category term="for-loop"/><category term="array"/><category term="Sum"/><category term="if-else"/><category term="matrix"/><category term="float"/><category term="ASCII"/><category term="Char variable"/><category term="Fibonacci"/><category term="Floyd"/><category term="Latin square"/><category term="Pascal"/><category term="Pyramid"/><category term="Quotient"/><category term="Real numbers"/><category term="Remainder"/><category term="Transpose"/><category term="even"/><category term="factorial"/><category term="g.c.d"/><category term="odd"/><category term="pattern"/><category term="programming language"/><category term="sum of two numbers"/><category term="while-loop"/><title type='text'>C-Programming</title><subtitle type='html'>C Programming tutorials and examples. Best books for C programming and free PDF. C in Linux and Windows. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-7497765237488168416</id><published>2019-07-17T22:13:00.000+05:30</published><updated>2019-07-19T08:21:42.173+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Floyd"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="Pascal"/><category scheme="http://www.blogger.com/atom/ns#" term="pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pyramid"/><title type='text'>Design Different types of Pattern in C Programming, Pyramid, Pascal, Floyd&#39;s etc</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Design Different types of Pattern in C Programming, Pyramid, Pascal, Floyd&#39;s, etc:&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
We draw some pattern using C-Language here using control statement.&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: large;&quot;&gt;1. &lt;u&gt;Print Half-Pyramid Using Number in C Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKWgvdxO2w76XtwrRpO3yl6TUct2lN-7BWNhMqP1lPt1KtQfcW15NyxOCV087P7UvhvbAFHI4nFTRutdVSv3uu2OBJhpc2JcrCdLs2n6_K14kN5zaKnTvDSifN0_SbPnMVbnbUsZW8SJlM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Half-Pyramid Using Number in C&quot; border=&quot;0&quot; data-original-height=&quot;343&quot; data-original-width=&quot;484&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKWgvdxO2w76XtwrRpO3yl6TUct2lN-7BWNhMqP1lPt1KtQfcW15NyxOCV087P7UvhvbAFHI4nFTRutdVSv3uu2OBJhpc2JcrCdLs2n6_K14kN5zaKnTvDSifN0_SbPnMVbnbUsZW8SJlM/s400/3.png&quot; title=&quot;Print Half-Pyramid Using Number in C&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Half-Pyramid Using Number&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt; &lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;You can download the image and also copy the code from below the image.&lt;/span&gt;&lt;/h4&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguG_CB4JmA2xJ8QIa_BOuJYt9MwGflgrWKYkUYpPzL6n9sHTSuNcn7f-Tamo2a1ea7cbK_lpfI66WLGup9ucpXh-XvLNReceqpJ94jCtdqheQ09XmcnE_-B1JiyJnDzTvpYm6dyN3SAGbD/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Half-Pyramid Using Number in C &quot; border=&quot;0&quot; data-original-height=&quot;492&quot; data-original-width=&quot;490&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguG_CB4JmA2xJ8QIa_BOuJYt9MwGflgrWKYkUYpPzL6n9sHTSuNcn7f-Tamo2a1ea7cbK_lpfI66WLGup9ucpXh-XvLNReceqpJ94jCtdqheQ09XmcnE_-B1JiyJnDzTvpYm6dyN3SAGbD/s400/1.png&quot; title=&quot;Print Half-Pyramid Using Number in C&quot; width=&quot;398&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i, j, rows;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;Enter number of rows: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;rows);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i=1; i&amp;lt;=rows; ++i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j=1; j&amp;lt;=i; ++j)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d &quot;,j);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;u style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;Output is given below&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGEGVuffBiPw1L4P1jEwLdwVxm2UTK2ImqAn2A0Dcel6zViz6sXURr_Cal-5FOaJKQaU9Utx-VeqY4EiXw4lFQ-d3uyT0GbWeiFobrOrUI4KWTldtIo3I_12tb0iHMOexT9UEbetJHjbjL/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Half-Pyramid Using Number in C&quot; border=&quot;0&quot; data-original-height=&quot;207&quot; data-original-width=&quot;423&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGEGVuffBiPw1L4P1jEwLdwVxm2UTK2ImqAn2A0Dcel6zViz6sXURr_Cal-5FOaJKQaU9Utx-VeqY4EiXw4lFQ-d3uyT0GbWeiFobrOrUI4KWTldtIo3I_12tb0iHMOexT9UEbetJHjbjL/s1600/2.png&quot; title=&quot;Print Half-Pyramid Using Number in C&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;————————————————✖️———————————————&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: large;&quot;&gt;2. &lt;u&gt;Print Half-Pyramid Using Alphabet in C Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9w5bKtfPmIWUY1Z1plvxan46uTGXFoJV6YfYdcYT7lwnQ1jVf9D48bVHsGZC_8-JJ8MTxG6f6pTEi5IpJsCwbpIKp1FpqAbsb8tggDMEfSmHaTJeYA_JTAzGt05xuJEKVbK3YiqiIjJlO/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot; Print Half-Pyramid Using Alphabet in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;469&quot; data-original-width=&quot;547&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9w5bKtfPmIWUY1Z1plvxan46uTGXFoJV6YfYdcYT7lwnQ1jVf9D48bVHsGZC_8-JJ8MTxG6f6pTEi5IpJsCwbpIKp1FpqAbsb8tggDMEfSmHaTJeYA_JTAzGt05xuJEKVbK3YiqiIjJlO/s1600/4.png&quot; title=&quot; Print Half-Pyramid Using Alphabet in C Programming&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Half-Pyramid using Alphabet&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7s18GQA4QXEetvLrT4PElykAu23fL7YOINH9MdzPIansMBDVDO-G_GM0R_7Uxe-AkOlv5ZJhZfALKKzizU6b-z-c7XgmH8bHf-MOxHofVrxdsvqPQenCsdZC3x9st7tJ8YS0EfLsd0c_Y/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot; Print Half-Pyramid Using Alphabet in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;555&quot; data-original-width=&quot;957&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7s18GQA4QXEetvLrT4PElykAu23fL7YOINH9MdzPIansMBDVDO-G_GM0R_7Uxe-AkOlv5ZJhZfALKKzizU6b-z-c7XgmH8bHf-MOxHofVrxdsvqPQenCsdZC3x9st7tJ8YS0EfLsd0c_Y/s640/5.png&quot; title=&quot; Print Half-Pyramid Using Alphabet in C Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; int i,j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; char input,alphabet = &#39;A&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;Enter the uppercase character you want to print in last row: &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%c&quot;,&amp;amp;input);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(i=1;i&amp;lt;=(input-&#39;A&#39;+1);++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j=1;j&amp;lt;=i;++j)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%c &quot;,alphabet);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++alphabet;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgap-jTWsUXTq-_M3FIu6PtZRIxamtIJUSzn1na4XYIz0mGtN8_lz6u9iNqge6Uh883rNqOIN6lK0vOgfR3uDV0FmKbFlixqr6J51nDlXCGpCqBMVD0Gz2tZFpNDUD6olcBlnCmVY2_rGZP/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot; Print Half-Pyramid Using Alphabet in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;225&quot; data-original-width=&quot;724&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgap-jTWsUXTq-_M3FIu6PtZRIxamtIJUSzn1na4XYIz0mGtN8_lz6u9iNqge6Uh883rNqOIN6lK0vOgfR3uDV0FmKbFlixqr6J51nDlXCGpCqBMVD0Gz2tZFpNDUD6olcBlnCmVY2_rGZP/s640/6.png&quot; title=&quot; Print Half-Pyramid Using Alphabet in C Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&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 style=&quot;color: black; font-size: small;&quot;&gt;—————————————&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: large;&quot;&gt;3. &lt;u&gt;Print Inverted Half-Pyramid Using numbers in C Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPy2TXlHFCUnl72uOBurf9llgkBMKG9XFnxXuZ7UW-i-XjjgocDGVITu_bFZ5rS-sWf0di0JfsTpQd9a7BLpjCDBCx46vgajSX8a79-VBtSPyp3tt6gbLl1BgmgX6UbbhgN6BssotkdbtC/s1600/18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Inverted Half-Pyramid Using numbers in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;573&quot; data-original-width=&quot;557&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPy2TXlHFCUnl72uOBurf9llgkBMKG9XFnxXuZ7UW-i-XjjgocDGVITu_bFZ5rS-sWf0di0JfsTpQd9a7BLpjCDBCx46vgajSX8a79-VBtSPyp3tt6gbLl1BgmgX6UbbhgN6BssotkdbtC/s400/18.png&quot; title=&quot;Print Inverted Half-Pyramid Using numbers in C Programming&quot; width=&quot;388&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Inverted half-pyramid&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4 style=&quot;color: black; font-size: medium;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;color: black; font-size: medium;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-size: medium;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;color: blue; font-size: x-large; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguBtAOGU8kf4aTp-qmgaFZWbHtn3z0g1wbMT0mCPRfbF5d6NqBJQw4wa86cU9YuIVXnxhcPE9qmFW9ghPJC4NBzW7FT9Ghz8zgyOlb5F45vpeWSclo4vviktF8GTm0Y_Bm5GJGAbfQ4oBh/s1600/16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Inverted Half-Pyramid Using numbers in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;471&quot; data-original-width=&quot;527&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguBtAOGU8kf4aTp-qmgaFZWbHtn3z0g1wbMT0mCPRfbF5d6NqBJQw4wa86cU9YuIVXnxhcPE9qmFW9ghPJC4NBzW7FT9Ghz8zgyOlb5F45vpeWSclo4vviktF8GTm0Y_Bm5GJGAbfQ4oBh/s400/16.png&quot; title=&quot;Print Inverted Half-Pyramid Using numbers in C Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;color: blue; font-size: x-large;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; int j,i,n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;How many Rows?&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;for(i=n;i&amp;gt;0;i--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(j=1;j&amp;lt;=i;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;%d &quot;,j);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6zcJMQKsuRyk2CiBVO5xR7ihJ09U5AnoTSlDTb1PBI1k4JcdGAd9jfwUd4JQmNE9I990G4PaE4sve_ucG251VfR8bmP4M7f1LaMcQnrbzwrcpqF_jH3AwF36kVqr9JIxUVI5JbXvj3kJb/s1600/17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Inverted Half-Pyramid Using numbers in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;232&quot; data-original-width=&quot;465&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6zcJMQKsuRyk2CiBVO5xR7ihJ09U5AnoTSlDTb1PBI1k4JcdGAd9jfwUd4JQmNE9I990G4PaE4sve_ucG251VfR8bmP4M7f1LaMcQnrbzwrcpqF_jH3AwF36kVqr9JIxUVI5JbXvj3kJb/s400/17.png&quot; title=&quot;Print Inverted Half-Pyramid Using numbers in C Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ————————————————✖️———————————————&lt;/div&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;4. &lt;u&gt;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2sww4AFcVkTtbvF-d0PTZGXhZkRXBJXsb6knhmG1DGpGX2gcVZ_QxjzoNiFJSVLXtp75IuAIZKnu7quygA8TjguaMsuEmVdk8Op0NvEI1LD00tN22wDkzwb25hYUdv88CzW4ev3PWvDjm/s1600/15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;457&quot; data-original-width=&quot;454&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2sww4AFcVkTtbvF-d0PTZGXhZkRXBJXsb6knhmG1DGpGX2gcVZ_QxjzoNiFJSVLXtp75IuAIZKnu7quygA8TjguaMsuEmVdk8Op0NvEI1LD00tN22wDkzwb25hYUdv88CzW4ev3PWvDjm/s400/15.png&quot; title=&quot;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming&quot; width=&quot;397&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Inverted half-pyramid using *&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtrpzXxDLbXv8B6iyUKiY1n7Upw4817uKi7AD9Cs4zUCcn9MCGldBtpQUNpe68GVan7Yv_a0b6nJJBWAenOvTDsa6A42aEAEvll7UuD_1zv35Tv2sZAJMr30UndaMJNTZU5Jq6oIzakjsc/s1600/13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;465&quot; data-original-width=&quot;472&quot; height=&quot;392&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtrpzXxDLbXv8B6iyUKiY1n7Upw4817uKi7AD9Cs4zUCcn9MCGldBtpQUNpe68GVan7Yv_a0b6nJJBWAenOvTDsa6A42aEAEvll7UuD_1zv35Tv2sZAJMr30UndaMJNTZU5Jq6oIzakjsc/s400/13.png&quot; title=&quot;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; int j,i,n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;How many Rows?&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;for(i=n;i&amp;gt;0;i--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(j=i;j&amp;gt;0;j--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;* &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_zeuwkfXpzHYtrkkBa6fnTpX8bk7mFTSn0q9oXQxf2b7wK_1ch4ag4IPW2-1vfZKYKUzj9T2K1ndKNSAvExDF-8yL_Lp0zhkJKzLedTybNJN89TGixr3hcLGQ2CCyl2C2vw3fgCgeR6oS/s1600/14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;242&quot; data-original-width=&quot;418&quot; height=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_zeuwkfXpzHYtrkkBa6fnTpX8bk7mFTSn0q9oXQxf2b7wK_1ch4ag4IPW2-1vfZKYKUzj9T2K1ndKNSAvExDF-8yL_Lp0zhkJKzLedTybNJN89TGixr3hcLGQ2CCyl2C2vw3fgCgeR6oS/s400/14.png&quot; title=&quot;Print Inverted Half-Pyramid Using &#39;*&#39; in C Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&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 style=&quot;color: black; font-size: small;&quot;&gt;—————————————&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: x-large;&quot;&gt;
5.&amp;nbsp;&lt;u&gt;Print&amp;nbsp;Full-Pyramid Using &#39;*&#39; in C Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr1g-1QYBTexjiImelZ621ZlAc99lJRZWOKa8sC5fqvCvPBeqPfIDj9J5xRZKOCrdOoBNODi1OfAoAtDytr_FOjuMos0dE4rW6tSQoX60DMl_fA6gxErubKvABf6Cb1T-CBLYYT1s6V5N2/s1600/21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Full-Pyramid Using &#39;*&#39; in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;448&quot; data-original-width=&quot;407&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr1g-1QYBTexjiImelZ621ZlAc99lJRZWOKa8sC5fqvCvPBeqPfIDj9J5xRZKOCrdOoBNODi1OfAoAtDytr_FOjuMos0dE4rW6tSQoX60DMl_fA6gxErubKvABf6Cb1T-CBLYYT1s6V5N2/s400/21.png&quot; title=&quot;Print Full-Pyramid Using &#39;*&#39; in C Programming&quot; width=&quot;363&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Full Pyramid&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUZQcdq9E5l3xbbON9lz5Sf5LXBpkhUNxzdvTInDK0zEQ6c0G41ooESXp5KtrRBy5O5y9H668FtkZ2cXsBnMEJthogz56olkGg28ZHzBxxmuAhd3UcljcQRxkLuMGsOrGBMESXOO99dy1/s1600/19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Full-Pyramid Using &#39;*&#39; in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;562&quot; data-original-width=&quot;491&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUZQcdq9E5l3xbbON9lz5Sf5LXBpkhUNxzdvTInDK0zEQ6c0G41ooESXp5KtrRBy5O5y9H668FtkZ2cXsBnMEJthogz56olkGg28ZHzBxxmuAhd3UcljcQRxkLuMGsOrGBMESXOO99dy1/s400/19.png&quot; title=&quot;Print Full-Pyramid Using &#39;*&#39; in C Programming&quot; width=&quot;348&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; int j,i,n,k=0;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;How many Rows?&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;for(i=1;i&amp;lt;=n;i++,k=0)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(j=1;j&amp;lt;=n-i;j++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot; &quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; while(k!=2*i-1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; ++k;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;font-size: x-large; text-align: left; text-decoration-line: underline;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpSZl4hfCIekc7TiLTMUd9GCyrFyPBQ2adMOgkRwWGZUfiSxXI8AC9PgZWHOwESI61iOlpGHBSv2cseieuO1gbjqXGjj0DCnqirAnX83ncpgJYln2jszmAXf68ml__zdrRBR69biKh0D8q/s1600/20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Full-Pyramid Using &#39;*&#39; in C Programming&quot; border=&quot;0&quot; data-original-height=&quot;205&quot; data-original-width=&quot;405&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpSZl4hfCIekc7TiLTMUd9GCyrFyPBQ2adMOgkRwWGZUfiSxXI8AC9PgZWHOwESI61iOlpGHBSv2cseieuO1gbjqXGjj0DCnqirAnX83ncpgJYln2jszmAXf68ml__zdrRBR69biKh0D8q/s400/20.png&quot; title=&quot;Print Full-Pyramid Using &#39;*&#39; in C Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: red; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&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;color: black;&quot;&gt;—————————————&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;6. &lt;/span&gt;&lt;u style=&quot;color: red; font-size: xx-large;&quot;&gt;Print Full Inverted Pyramid in C-Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: red; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigfeYJ-njmTn5Teeun2SfVdvGWEJpnY56vj5XSRZBubTtwqUgY8uGhEMvgXRLoq98EgCbxUl2PLBMLaAe9728LH0w0AYS82BvjZir6bgr2hJP5U03aU9OlfDdVQsIlWJiIK5kwMmPHY12X/s1600/22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Full Inverted Pyramid in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;497&quot; data-original-width=&quot;521&quot; height=&quot;381&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigfeYJ-njmTn5Teeun2SfVdvGWEJpnY56vj5XSRZBubTtwqUgY8uGhEMvgXRLoq98EgCbxUl2PLBMLaAe9728LH0w0AYS82BvjZir6bgr2hJP5U03aU9OlfDdVQsIlWJiIK5kwMmPHY12X/s400/22.png&quot; title=&quot;Print Full Inverted Pyramid in C-Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Full Inverted Pyramid&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: red; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;color: red; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: red; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: red; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja4_LXBO73svUEjpCNm7V1-eCCwJlMRPshrYKUzfEtghUj9r0-FaYEqpu2q8IdQtiIqjZE4RafbomwOievXlH7n7Qx0j84ZVslUQxMuon3I4OJreW1m7FpWetHtdIDLQgDQz2u-iFIWs7V/s1600/24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Full Inverted Pyramid in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;590&quot; data-original-width=&quot;522&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja4_LXBO73svUEjpCNm7V1-eCCwJlMRPshrYKUzfEtghUj9r0-FaYEqpu2q8IdQtiIqjZE4RafbomwOievXlH7n7Qx0j84ZVslUQxMuon3I4OJreW1m7FpWetHtdIDLQgDQz2u-iFIWs7V/s400/24.png&quot; title=&quot;Print Full Inverted Pyramid in C-Programming&quot; width=&quot;353&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: red; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; int j,i,n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;How many Rows?&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;for(i=n;i&amp;gt;0;i--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(j=i;j&amp;gt;0;j--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;* &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq6LMet6Q005rDaq8-sJAUWaNA3_yUcNynrpT48iT9EnaflRaDtPrBmj2pcgINQy5S6LuwvC0KEfD4IOPW17O6y4NFDZNDcnAJboDbDnY4a2t9SUeEBCTRTfawcQYf9yYiB7rPCFCVDxM7/s1600/23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Full Inverted Pyramid in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;206&quot; data-original-width=&quot;423&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq6LMet6Q005rDaq8-sJAUWaNA3_yUcNynrpT48iT9EnaflRaDtPrBmj2pcgINQy5S6LuwvC0KEfD4IOPW17O6y4NFDZNDcnAJboDbDnY4a2t9SUeEBCTRTfawcQYf9yYiB7rPCFCVDxM7/s400/23.png&quot; title=&quot;Print Full Inverted Pyramid in C-Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;————————————————✖️——&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;—————————————&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599; color: red; font-size: x-large;&quot;&gt;7.&amp;nbsp;&lt;u&gt;Print Floyd&#39;s Triangle in C-Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXpTO2L_6ibEGyQiKR4xnAtvvCOA6y0EuJHYMLJniVuOV6HcgvvqQmUSPAuhg_Y1rqj3kO70zXT0_kn0w6sa7wr1i6Ze-s-zevsN4_CBalw_G399aPgODp5cQc_SoA7jOd5Xmn39FY_fh3/s1600/27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Floyd&#39;s Triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;520&quot; data-original-width=&quot;610&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXpTO2L_6ibEGyQiKR4xnAtvvCOA6y0EuJHYMLJniVuOV6HcgvvqQmUSPAuhg_Y1rqj3kO70zXT0_kn0w6sa7wr1i6Ze-s-zevsN4_CBalw_G399aPgODp5cQc_SoA7jOd5Xmn39FY_fh3/s400/27.png&quot; title=&quot;Print Floyd&#39;s Triangle in C-Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Floyd&#39;s Triangle&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;h4 style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNLmUa5lzOVv2Tl-DBRqO8hH-9ZlsKyLoE7hoVWWG5jTp5kBRXbcC8NOF_HTkGLpqnEO_ovtsXTgJKZUCTA8bo7WttlHo6uO1oX3nsP_Q-f_0STEtvC6aui2iJdNfzTpi7TsjD9ldOqqL6/s1600/25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Floyd&#39;s Triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;561&quot; data-original-width=&quot;501&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNLmUa5lzOVv2Tl-DBRqO8hH-9ZlsKyLoE7hoVWWG5jTp5kBRXbcC8NOF_HTkGLpqnEO_ovtsXTgJKZUCTA8bo7WttlHo6uO1oX3nsP_Q-f_0STEtvC6aui2iJdNfzTpi7TsjD9ldOqqL6/s400/25.png&quot; title=&quot;Print Floyd&#39;s Triangle in C-Programming&quot; width=&quot;356&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;int n, i, j, k= 1;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;printf(&quot;Enter number of rows: &quot;);&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;for(i=1; i &amp;lt;= n; i++)&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;for(j=1; j &amp;lt;= i; ++j)&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;printf(&quot;%d &quot;, k);&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;++k;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;printf(&quot;\n&quot;);&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/u&gt;&amp;nbsp;&lt;/h2&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA3zLUSRoPFTq8hcfoTJklGIBT8RIR4MTlpvwwCEM48dgO3lvr3ijFNMcx6JP4TvhDfxzDyfAsGFON0pgSk8u3Y4WqrfdLBN31lQjyvxZZdhX8QSAIG14jtjjlgK-g_DDpz7Ty1ifVA7R4/s1600/26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Floyd&#39;s Triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;207&quot; data-original-width=&quot;423&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA3zLUSRoPFTq8hcfoTJklGIBT8RIR4MTlpvwwCEM48dgO3lvr3ijFNMcx6JP4TvhDfxzDyfAsGFON0pgSk8u3Y4WqrfdLBN31lQjyvxZZdhX8QSAIG14jtjjlgK-g_DDpz7Ty1ifVA7R4/s400/26.png&quot; title=&quot;Print Floyd&#39;s Triangle in C-Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-size: x-large;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-size: x-large;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ————————————————✖️——&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;—————————————&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: red; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #6fa8dc; color: red; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;8. &lt;/span&gt;&lt;u style=&quot;color: red; font-size: xx-large;&quot;&gt;Print Pascal Triangle in C-Programming:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9-YST8YSm0PSuWlZOj_O4XZo6Tdb-O4dhQi18FF_FmvjR8VDeawO2dlGYDnndcHBIj6pZN2aMDB0wEiY3lgrZgKfQA-aqZXVg_rdag-cf9BCgtj4UTJJ2C95icvgkeZmtquTvK1_JgSng/s1600/30.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Pascal Triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;530&quot; data-original-width=&quot;612&quot; height=&quot;277&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9-YST8YSm0PSuWlZOj_O4XZo6Tdb-O4dhQi18FF_FmvjR8VDeawO2dlGYDnndcHBIj6pZN2aMDB0wEiY3lgrZgKfQA-aqZXVg_rdag-cf9BCgtj4UTJJ2C95icvgkeZmtquTvK1_JgSng/s320/30.png&quot; title=&quot;Print Pascal Triangle in C-Programming&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Pascal Triangle&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;u&gt;Important Topics:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;For-loop&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt; if-else&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;Code:&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdP0OK9rpLVgAEfg-HDtPV-dKIRnESwEkLswdCKM_cp3DHDcRUZJnyBs2aSpEYzXUJEY9DyKFsJhEfVGwF15yF3HJZVwzRwKAsYLDzMPDJYgg06_yppHj5UsFhGOkOr3ps-QuZ_pKIK4I6/s1600/28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Pascal Triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;687&quot; data-original-width=&quot;613&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdP0OK9rpLVgAEfg-HDtPV-dKIRnESwEkLswdCKM_cp3DHDcRUZJnyBs2aSpEYzXUJEY9DyKFsJhEfVGwF15yF3HJZVwzRwKAsYLDzMPDJYgg06_yppHj5UsFhGOkOr3ps-QuZ_pKIK4I6/s400/28.png&quot; title=&quot;Print Pascal Triangle in C-Programming&quot; width=&quot;356&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Code&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;int i,j,n,space,k;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;printf(&quot;Enter the rows numbers:&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;for(i=0; i&amp;lt;n; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(space=1; space &amp;lt;=n-i; space++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;&amp;nbsp; &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j=0; j &amp;lt;= i; j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (j==0 || i==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; k = 1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; k = k*(i-j+1)/j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%4d&quot;, k);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/u&gt;&amp;nbsp;&lt;/h2&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1k_DEdiJ-_k0v4983uEIvPpZ4ds-KZJJb9_dg8cNubrcouSNfcVno0iM-VSagExoouCnoELEiGllFSEwW4_iFsDq9-eDcNaLx9HtIHME2e0y8Cu8_rIUV7p1vllDZhA2noIefu0h0yEUb/s1600/29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Print Pascal Triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;211&quot; data-original-width=&quot;413&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1k_DEdiJ-_k0v4983uEIvPpZ4ds-KZJJb9_dg8cNubrcouSNfcVno0iM-VSagExoouCnoELEiGllFSEwW4_iFsDq9-eDcNaLx9HtIHME2e0y8Cu8_rIUV7p1vllDZhA2noIefu0h0yEUb/s400/29.png&quot; title=&quot;Print Pascal Triangle in C-Programming&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;————————————————✖️——&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;—————————————&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/7497765237488168416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/07/design-different-types-of-pattern-in-c.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/7497765237488168416'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/7497765237488168416'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/07/design-different-types-of-pattern-in-c.html' title='Design Different types of Pattern in C Programming, Pyramid, Pascal, Floyd&#39;s etc'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKWgvdxO2w76XtwrRpO3yl6TUct2lN-7BWNhMqP1lPt1KtQfcW15NyxOCV087P7UvhvbAFHI4nFTRutdVSv3uu2OBJhpc2JcrCdLs2n6_K14kN5zaKnTvDSifN0_SbPnMVbnbUsZW8SJlM/s72-c/3.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-3026779400880167522</id><published>2019-03-16T12:14:00.000+05:30</published><updated>2019-07-12T21:23:04.078+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="g.c.d"/><category scheme="http://www.blogger.com/atom/ns#" term="if-else"/><title type='text'>Find g.c.d of two integers in C Programming using for-loop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Find g.c.d of two integers in C-Programming using for-loop:&lt;/span&gt;&lt;/h2&gt;
First of all, what are g.c.d means? g.c.d means Greatest common divisor, it is also known as h.c.f i.e. Highest common factor. For example, g.c.d of 9 and 6 is 3 since 3 is the greatest integer which divides both 9 and 6. Again g.c.d of 5 and 3 is 1.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ3vSTNcSaWxaP0rBZHYhQ4RNV7su_VlhJreB4iXnYaRUoJcvL6xPL2PMECdmk2NtYM-j3rE9kiGULFtwgu1cRJbNlWmvDc3n-C2PKVS5iUcccPgw0HOr8L7sZ973z_Co3NrIcqWkBL9Ck/s1600/gcd.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find g.c.d of two integers in C Programming using for loop&quot; border=&quot;0&quot; data-original-height=&quot;375&quot; data-original-width=&quot;889&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ3vSTNcSaWxaP0rBZHYhQ4RNV7su_VlhJreB4iXnYaRUoJcvL6xPL2PMECdmk2NtYM-j3rE9kiGULFtwgu1cRJbNlWmvDc3n-C2PKVS5iUcccPgw0HOr8L7sZ973z_Co3NrIcqWkBL9Ck/s640/gcd.png&quot; title=&quot;Find g.c.d of two integers in C Programming using for loop&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can see also:&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;1.&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;frank ruhl libre&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; text-align: center;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/03/find-ascii-value-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Find ASCII value in C-Programming&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;2.&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;frank ruhl libre&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/03/design-triangle-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Design * triangle in C-Programming&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important Tools:&lt;/span&gt;&lt;/h3&gt;
1. for-loop&lt;br /&gt;
2. if-else&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-fSgZV-eV7l-o3Sg-xfVx5sVQ_vZXFOSeBRLQtaxOLFmBRZoouHiYIwWqbPFNMxx7p_GdsttVFGwEL1c44lGAizCLSfMMchlqV1Vn-_6Uqv1aK5eewVgqEF62ZWvX-IDSGwd5ROE1ME2v/s1600/sss.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find g.c.d of two integers in C-Programming using for-loop&quot; border=&quot;0&quot; data-original-height=&quot;415&quot; data-original-width=&quot;1009&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-fSgZV-eV7l-o3Sg-xfVx5sVQ_vZXFOSeBRLQtaxOLFmBRZoouHiYIwWqbPFNMxx7p_GdsttVFGwEL1c44lGAizCLSfMMchlqV1Vn-_6Uqv1aK5eewVgqEF62ZWvX-IDSGwd5ROE1ME2v/s640/sss.png&quot; title=&quot;Find g.c.d of two integers in C-Programming using for-loop&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int a,b,g,i;&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the two integer numbers:&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d%d&quot;,&amp;amp;a,&amp;amp;b);&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; for(i=1;i&amp;lt;=a &amp;amp;&amp;amp; i&amp;lt;=b;++i)&lt;br /&gt;
&amp;nbsp; if(a%i==0 &amp;amp;&amp;amp; b%i==0)&lt;br /&gt;
&amp;nbsp; g=i;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; printf(&quot;The gcd of %d and %d is %d&quot;,a,b,g);&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
The output is given below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxHKtMMV71KD21I0bYj1nDv49UUK8DqoPyOY1-8B4W5dMaJwSYaaN5b8Yp0E0PTbv-R6zaCLU58iCSaZcrochivKZZap2cgEfWshWAY1NNHYeAqtpaEyvgJVjlfBeVZCxgFS2-FNpDi0X3/s1600/ssss.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find g.c.d of two integers in C-Programming using for-loop&quot; border=&quot;0&quot; data-original-height=&quot;211&quot; data-original-width=&quot;659&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxHKtMMV71KD21I0bYj1nDv49UUK8DqoPyOY1-8B4W5dMaJwSYaaN5b8Yp0E0PTbv-R6zaCLU58iCSaZcrochivKZZap2cgEfWshWAY1NNHYeAqtpaEyvgJVjlfBeVZCxgFS2-FNpDi0X3/s640/ssss.png&quot; title=&quot;Find g.c.d of two integers in C-Programming using for-loop&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;1. &lt;/b&gt;We use Header Package &amp;lt;stdio.h&amp;gt; here.&lt;br /&gt;
&lt;b&gt;2. &lt;/b&gt;We use 4 integers variables a,b,g and i. a and b are used to storing the value of given numbers from users. g is for getting value of g.c.d and i is for for-loops.&lt;br /&gt;
&lt;b&gt;3.&lt;/b&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;How does the for-loop works here&lt;/span&gt;&lt;/b&gt;:&lt;br /&gt;
If any users give two integers say a=4 and b=10 then it will entered in the loop with this value of a and b and start with initial condition i =1 and the condition is I should be less than both a and b and pre-increment the value of i by 1. After entering in the loop it will check if condition i.e. after dividing both a and b with I, the residue should be 0 then it will give the value of g.c.d.&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can see also:&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;1.&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;frank ruhl libre&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/03/design-latin-square-in-c-programming-so.html&quot; target=&quot;_blank&quot;&gt;Design a Latin square in C-Programming&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;2.&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;frank ruhl libre&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/Transpose-of-matrix-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;Find the transpose of a matrix in C-Programming&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;3.&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;frank ruhl libre&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/find-largest-number-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Find the largest number in C-Programming&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/3026779400880167522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/find-gcd-of-two-integers-in-c.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/3026779400880167522'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/3026779400880167522'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/find-gcd-of-two-integers-in-c.html' title='Find g.c.d of two integers in C Programming using for-loop'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ3vSTNcSaWxaP0rBZHYhQ4RNV7su_VlhJreB4iXnYaRUoJcvL6xPL2PMECdmk2NtYM-j3rE9kiGULFtwgu1cRJbNlWmvDc3n-C2PKVS5iUcccPgw0HOr8L7sZ973z_Co3NrIcqWkBL9Ck/s72-c/gcd.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-370584750814874045</id><published>2019-03-09T19:42:00.001+05:30</published><updated>2019-03-09T19:42:29.214+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASCII"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Char variable"/><title type='text'>Find ASCII value in C-Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Find ASCII value in C-Programming:&lt;/span&gt;&lt;/h2&gt;
What is &lt;a href=&quot;http://festyy.com/wB4lqC&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;ASCII&lt;/span&gt;&lt;/a&gt; value? ASCII stands for &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;American Standard Code for Information Interchange&lt;/b&gt;&lt;/span&gt;. Below is the ASCII character table, including descriptions of the first &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;32&lt;/span&gt;&lt;/b&gt; characters. ASCII was originally designed for use with teletypes, and so the descriptions are somewhat obscure and their use is frequently not as intended. Moreover Java actually uses Unicode, which includes ASCII and other characters from languages around the world. For Example ASCII value of A=65, B=66.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMHAry6c7zD6aIjmSQmUUj1DMw3P2XeiKjJezw4IemG3ea2kvnAB_NaSEbaHyRg438gmI3_IfhUojONw0zKyCaa1gSnI0sy2qWmCK-JjAZhlis0oycmRLm2qH8xQ2L7q40KPiO2vhTvE-u/s1600/Ascii.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Find ASCII value in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;1008&quot; data-original-width=&quot;868&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMHAry6c7zD6aIjmSQmUUj1DMw3P2XeiKjJezw4IemG3ea2kvnAB_NaSEbaHyRg438gmI3_IfhUojONw0zKyCaa1gSnI0sy2qWmCK-JjAZhlis0oycmRLm2qH8xQ2L7q40KPiO2vhTvE-u/s640/Ascii.png&quot; title=&quot;Find ASCII value in C-Programming&quot; width=&quot;548&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;ASCII Table&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important Tools:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://festyy.com/wB4ljq&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;char variable&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can also see:&lt;/span&gt;&lt;/h4&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/03/design-latin-square-in-c-programming-so.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Design a Latin square in C-Programming&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/03/design-triangle-in-c-programming.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Design * triangle in C-Programming&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXt4XkNXN01FC_BKoHEUiwz6fB3u2_vCaNyE4CLvpknM_NOY6HX_6i6WzxCTVKHfMOjpAve7fv4U5a5fgyhdC4FP5sJ_iYLg_VbLTJvwUzrunZh04Dy5P6PEhUa-4Oh2yzoQ05bmpxD7jm/s1600/asciiq.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Find ASCII value in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;255&quot; data-original-width=&quot;989&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXt4XkNXN01FC_BKoHEUiwz6fB3u2_vCaNyE4CLvpknM_NOY6HX_6i6WzxCTVKHfMOjpAve7fv4U5a5fgyhdC4FP5sJ_iYLg_VbLTJvwUzrunZh04Dy5P6PEhUa-4Oh2yzoQ05bmpxD7jm/s640/asciiq.png&quot; title=&quot;Find ASCII value in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;CODE&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; char n;&lt;br /&gt;&amp;nbsp; printf(&quot;Enter the character of which you want to find ASCII number:&quot;);&lt;br /&gt;&amp;nbsp; scanf(&quot;%c&quot;,&amp;amp;n);&lt;br /&gt;&amp;nbsp; printf(&quot;The ASCII value is %d&quot;,n);&lt;br /&gt;}&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9iFF6pLhSG879NITG7ZeaD3gnKpmDedeYMYKcIYIg3n0V3QOZ9wj2U98mbmCJOafhe1TZ7MPGr5izRHbf6APmGieD-KWwX8PuxzPVERxzQXL4rPOab6gBDuOx-e8bbxFzZqIah7Sb4pA6/s1600/ascciw.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Find ASCII value in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;169&quot; data-original-width=&quot;1113&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9iFF6pLhSG879NITG7ZeaD3gnKpmDedeYMYKcIYIg3n0V3QOZ9wj2U98mbmCJOafhe1TZ7MPGr5izRHbf6APmGieD-KWwX8PuxzPVERxzQXL4rPOab6gBDuOx-e8bbxFzZqIah7Sb4pA6/s640/ascciw.png&quot; title=&quot;Find ASCII value in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1. &lt;/span&gt;&lt;/b&gt;We use &lt;a href=&quot;http://festyy.com/wB4lIQ&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Header Package&lt;/span&gt;&lt;/a&gt; &amp;lt;stdio.h&amp;gt; here.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2. &lt;/b&gt;&lt;/span&gt;Then we use char variable n. To know about char variable visit &lt;a href=&quot;http://festyy.com/wB4ljq&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Syntax page&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3. &lt;/span&gt;&lt;/b&gt;Then we store the char value in the variable n and we print it in next line. You have to put any character and it will give you the corresponding ASCII value.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You Can See Also:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border-bottom: 1px solid rgb(221, 221, 221); box-sizing: border-box; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; margin: 0px; padding: 2px 10px; position: relative; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/Transpose-of-matrix-in-c-programming.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Find the transpose of a matrix in C-Programming&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/find-largest-number-in-c-programming.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Find the largest number in C-Programming&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/sum-of-two-matrix-in-c-programming.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Sum Of Two Matrix in C-Programming&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Print a MATRIX in C-Programming using array&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/find-terms-of-fibonacci-sequence-in-c.html&quot; itemprop=&quot;url&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Frank Ruhl Libre&amp;quot;, Arial, sans-serif; text-decoration-line: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Find the terms of Fibonacci sequence in C-Programming (Using For-loop)&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/370584750814874045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/find-ascii-value-in-c-programming.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/370584750814874045'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/370584750814874045'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/find-ascii-value-in-c-programming.html' title='Find ASCII value in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMHAry6c7zD6aIjmSQmUUj1DMw3P2XeiKjJezw4IemG3ea2kvnAB_NaSEbaHyRg438gmI3_IfhUojONw0zKyCaa1gSnI0sy2qWmCK-JjAZhlis0oycmRLm2qH8xQ2L7q40KPiO2vhTvE-u/s72-c/Ascii.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-8742081107502553702</id><published>2019-03-04T22:44:00.000+05:30</published><updated>2019-03-04T22:44:10.847+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><title type='text'>Design  *  triangle in C-Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Design&amp;nbsp; *&amp;nbsp; triangle in C-Programming&lt;/span&gt;:&lt;/span&gt;&lt;/h2&gt;
&amp;nbsp; Here we Design a triangle with &lt;b&gt;&quot;*&quot;&lt;/b&gt;. You have to give number of rows and it will print that triangle including given number of rows with element &lt;b&gt;&quot;*&quot;.&lt;/b&gt; See the picture below, its looks like this.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFDAM0xgLngOHBxwzeHQYMclLaASw5JtGaZfR0wPaglBqi1GCBtAVJ5q1PRLNOwaD4Il9i4fbt4FnmJwi3chdfYXEpdctCcUW6dIaFeXkDGu_0PIbT0PRLgtq65HACkpWJ3t6qHAtcxXho/s1600/triangle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Design  *  triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;560&quot; data-original-width=&quot;1297&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFDAM0xgLngOHBxwzeHQYMclLaASw5JtGaZfR0wPaglBqi1GCBtAVJ5q1PRLNOwaD4Il9i4fbt4FnmJwi3chdfYXEpdctCcUW6dIaFeXkDGu_0PIbT0PRLgtq65HACkpWJ3t6qHAtcxXho/s640/triangle.png&quot; title=&quot;Design  *  triangle in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important Tools:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;1.&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;for-loop&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can also see:&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1. &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/03/design-latin-square-in-c-programming-so.html&quot; target=&quot;_blank&quot;&gt;Design a Latin Square in C-Programming&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;2. &lt;/span&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/Transpose-of-matrix-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Find the Transpose of a Matrix&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBr-dj_K35vztLNQz4YkLxoHp3D307nXywsOHdeALaLi_wB-H-pxBs8izjUZ_1vrUwhY_MPxHF4BaWwuC6s00FbCtIl_HwC3Zk7IS3q38LbL4B5iDaNlBbEy-ljomSN8_iKRyogZPXQ2XK/s1600/triu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Design  *  triangle in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;470&quot; data-original-width=&quot;933&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBr-dj_K35vztLNQz4YkLxoHp3D307nXywsOHdeALaLi_wB-H-pxBs8izjUZ_1vrUwhY_MPxHF4BaWwuC6s00FbCtIl_HwC3Zk7IS3q38LbL4B5iDaNlBbEy-ljomSN8_iKRyogZPXQ2XK/s640/triu.png&quot; title=&quot;Design  *  triangle in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int i,j,n;&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the number of row:&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(j=0;j&amp;lt;=i;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;The output is given below:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrmD-zKF13l_hcwcaPzRf01CED4z3TDh_oi5i8PrWj8b4ooYtEGoY26d7af8SQWn1358KRFicjNguzdWwcm0_z_18WISVK87D4dQy7DPKwfVYRD9ZFgFWALXaJ0lxpInInb1sLnUB57ag7/s1600/triudd.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;341&quot; data-original-width=&quot;587&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrmD-zKF13l_hcwcaPzRf01CED4z3TDh_oi5i8PrWj8b4ooYtEGoY26d7af8SQWn1358KRFicjNguzdWwcm0_z_18WISVK87D4dQy7DPKwfVYRD9ZFgFWALXaJ0lxpInInb1sLnUB57ag7/s640/triudd.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can also see:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;1.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; font-family: Domine, Arial, sans-serif;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/find-largest-number-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Find the largest number in C-Programming&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Domine, Arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Print a MATRIX in C-Programming using array&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;1.&lt;/b&gt;&lt;/span&gt; First we use the header package &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;lt;stdio.h&amp;gt;&lt;/b&gt;&lt;/span&gt;. To know more visit &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;Header Package&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt; We use 3 integers variable &lt;span style=&quot;color: red;&quot;&gt;i,j&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; Then we used &lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt; for store the value of row number and we used&lt;span style=&quot;color: red;&quot;&gt; i&lt;/span&gt; and&lt;span style=&quot;color: red;&quot;&gt; j&lt;/span&gt; for for-loop.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt; Lets see how for-loop works here with an example. So the code is-&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(j=0;j&amp;lt;=i;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;/blockquote&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;here let &lt;span style=&quot;color: red;&quot;&gt;n=3&lt;/span&gt;, then first it will take &lt;span style=&quot;color: red;&quot;&gt;i=0&lt;/span&gt; and enter in the first for-loop. After that it will enter in 2nd for-loop with the initial value of&lt;span style=&quot;color: red;&quot;&gt; j=0&lt;/span&gt; and it will print a&lt;span style=&quot;color: red;&quot;&gt; &lt;b&gt;*&lt;/b&gt;&amp;nbsp;&lt;/span&gt;. Again it will exist from 2nd for-loop and take a new line and again go to the 1st for-loop. Therefore it will take &lt;span style=&quot;color: red;&quot;&gt;i=1&lt;/span&gt; check the condition that is less than 3 and enter into the loop, then it will enter into the 2nd for loop and&amp;nbsp; take &lt;span style=&quot;color: red;&quot;&gt;j=0&lt;/span&gt; and print a &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;*&lt;/b&gt;&lt;/span&gt; and again it will go into 2nd loop and increment the value i.e &lt;span style=&quot;color: red;&quot;&gt;j=1&lt;/span&gt; which is equal to 1 and again it will print a &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;*&lt;/span&gt;&lt;/b&gt;. So it will print two&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; *&lt;/span&gt;&lt;/b&gt; side by side. Now it again go to the first loop and take &lt;span style=&quot;color: red;&quot;&gt;i=2&lt;/span&gt; and will enter in the 2nd for-loop and it will do that same thing 3 times for &lt;span style=&quot;color: red;&quot;&gt;j=0,j=1&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;j=2&lt;/span&gt;, then it will exists from 2nd loop and finished here because first for-loop does not work for &lt;span style=&quot;color: red;&quot;&gt;i=3&lt;/span&gt;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/8742081107502553702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/design-triangle-in-c-programming.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/8742081107502553702'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/8742081107502553702'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/design-triangle-in-c-programming.html' title='Design  *  triangle in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFDAM0xgLngOHBxwzeHQYMclLaASw5JtGaZfR0wPaglBqi1GCBtAVJ5q1PRLNOwaD4Il9i4fbt4FnmJwi3chdfYXEpdctCcUW6dIaFeXkDGu_0PIbT0PRLgtq65HACkpWJ3t6qHAtcxXho/s72-c/triangle.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-4524245308235369338</id><published>2019-03-01T23:05:00.000+05:30</published><updated>2019-03-02T17:20:40.387+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="Latin square"/><title type='text'>Design a Latin square in C-Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Design a Latin square in C-Programming:&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
So first of all we have to know what is a &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Latin square&lt;/span&gt;&lt;/b&gt;? By definition a Latin square is an arrangement of letters or symbols that occur n times, in a 2-dimensional array of n&lt;sup&gt;2&lt;/sup&gt; compartments so that no letters or numbers appears twice in the same row or column. For more information about Latin square &lt;a href=&quot;https://en.wikipedia.org/wiki/Latin_square&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;visit here&lt;/span&gt;&lt;/a&gt;. An example of 3x3 Latin square is given below.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwIxQ5fXa5IhCFnoh5Qni2KxLxxpIpfNiCa7FlCCzbuD9z8w38wzwJfYg98wdEEFE1fremoTw0JHIHfH3zBLZAvEIpKpoGeiM3OPTrmMpmdpCd20aCtub7Y183IsI-VxN2HNz4rxY66EA4/s1600/Latin.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Design a Latin square in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;414&quot; data-original-width=&quot;1163&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwIxQ5fXa5IhCFnoh5Qni2KxLxxpIpfNiCa7FlCCzbuD9z8w38wzwJfYg98wdEEFE1fremoTw0JHIHfH3zBLZAvEIpKpoGeiM3OPTrmMpmdpCd20aCtub7Y183IsI-VxN2HNz4rxY66EA4/s640/Latin.png&quot; title=&quot;Design a Latin square in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important Tools:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;1. &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: red;&quot;&gt;Array.&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Related Link:&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;How to print a matrix.&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt; &lt;b&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/sum-of-two-matrix-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Sum of two matrix.&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC9rhC7pFz00zKjLrKqMFlLBIeD0zzU-Pt6rfvmQqEW440z3dnRsqwEsoIIDFZroi6F6xIN7WvP0-rG6wPUH1QElEf6-AhYXlBj3ATJFiPs81rm2etEDi9ADR7e1WjE4xv5ktbQp_pKa_/s1600/Latina.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Design a Latin square in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;593&quot; data-original-width=&quot;1036&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC9rhC7pFz00zKjLrKqMFlLBIeD0zzU-Pt6rfvmQqEW440z3dnRsqwEsoIIDFZroi6F6xIN7WvP0-rG6wPUH1QElEf6-AhYXlBj3ATJFiPs81rm2etEDi9ADR7e1WjE4xv5ktbQp_pKa_/s640/Latina.png&quot; title=&quot;Design a Latin square in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int n,a[10][10],i,j;&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the value of n:&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; a[i][j]=(i+j)%n+1;&lt;br /&gt;
&amp;nbsp; printf(&quot;The Latin for %d will be\n&quot;,n);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;%3d&quot;,a[i][j]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: red;&quot;&gt;The output is given below:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5CHIR-w055iHbATafUe8H4BSnX1Utq2RUwZudzc708iyjw-c9_v3dFzH3UHxbhEDBQcGAb5pa94vY_Wf9lOjutSpXHPwhtfkVA9ldJjvP_uHSVpLz35tykj2PTf1Aj58MFtxaBNAYOeKC/s1600/Latinaf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Design a Latin square in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;203&quot; data-original-width=&quot;595&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5CHIR-w055iHbATafUe8H4BSnX1Utq2RUwZudzc708iyjw-c9_v3dFzH3UHxbhEDBQcGAb5pa94vY_Wf9lOjutSpXHPwhtfkVA9ldJjvP_uHSVpLz35tykj2PTf1Aj58MFtxaBNAYOeKC/s640/Latinaf.png&quot; title=&quot;Design a Latin square in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; We use &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;header package&lt;/a&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt; Therefore we introduced 4 int variable &lt;span style=&quot;color: red;&quot;&gt;n, a[10][10], i, j&lt;/span&gt;. Where &lt;span style=&quot;color: red;&quot;&gt;a[10][10]&lt;/span&gt; is array type variable.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; First of all we used &lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt; for store the order of Latin square.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt; Therefore we used for-loop to evaluate all the value for each compartment of that Latin square.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;5.&lt;/span&gt;&lt;/b&gt; Meaning of&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; a[i][j]=(i+j)%n+1;&lt;/blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If we consider for the value &lt;span style=&quot;color: red;&quot;&gt;n=3&lt;/span&gt; then we have the value in &lt;span style=&quot;color: red;&quot;&gt;a[0][0]&lt;/span&gt; is &lt;span style=&quot;color: red;&quot;&gt;{(0+0)%3+1}=(0+1)=1&lt;/span&gt;. Again for &lt;span style=&quot;color: red;&quot;&gt;a[0][1]&lt;/span&gt; we have the value &lt;span style=&quot;color: red;&quot;&gt;{(0+1)%3+1}=(1+1)=2&lt;/span&gt;, for &lt;span style=&quot;color: red;&quot;&gt;a[0][2]&lt;/span&gt; we have &lt;span style=&quot;color: red;&quot;&gt;{(0+2)%3+1}=(2+1)=3&lt;/span&gt;. and so on it will give the value of &lt;span style=&quot;color: red;&quot;&gt;a[1][0], a[1][1], a[1][2], a[2][0], a[2][1]&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;a[2][2]&lt;/span&gt; are &lt;span style=&quot;color: red;&quot;&gt;2,3,1,3,1&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt; respectively.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;6.&lt;/span&gt;&lt;/b&gt; Then we again use &lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt; to print the value of the Latin square. It works similar as we already mention on this&amp;nbsp;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/Transpose-of-matrix-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;Explanation no 6&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;7.&lt;/span&gt;&lt;/b&gt; You can see that we use &lt;span style=&quot;color: red;&quot;&gt;&quot;%3d&quot;&lt;/span&gt; to print the numbers of the Latin square. The reason for using &lt;span style=&quot;color: red;&quot;&gt;&quot;%3d&quot;&lt;/span&gt; is, it will print the numbers giving two space between every to consecutive number.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can also see:&lt;/span&gt;&lt;/h4&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;domine&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/find-largest-number-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;Find the largest number in C-Programming.&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;b style=&quot;box-sizing: border-box; font-family: Domine, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/find-terms-of-fibonacci-sequence-in-c.html&quot; target=&quot;_blank&quot;&gt;Find the terms of Fibonacci sequence in C-Programming (Using For-loop)&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;b style=&quot;background-color: white; color: red; font-family: Domine, Arial, sans-serif;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/sum-of-n-real-numbers-using-array.html&quot; target=&quot;_blank&quot;&gt;Sum of n real numbers using array&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/4524245308235369338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/design-latin-square-in-c-programming-so.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/4524245308235369338'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/4524245308235369338'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/03/design-latin-square-in-c-programming-so.html' title='Design a Latin square in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwIxQ5fXa5IhCFnoh5Qni2KxLxxpIpfNiCa7FlCCzbuD9z8w38wzwJfYg98wdEEFE1fremoTw0JHIHfH3zBLZAvEIpKpoGeiM3OPTrmMpmdpCd20aCtub7Y183IsI-VxN2HNz4rxY66EA4/s72-c/Latin.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-8742361782590696897</id><published>2019-02-26T22:02:00.000+05:30</published><updated>2019-03-04T19:35:22.717+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="matrix"/><category scheme="http://www.blogger.com/atom/ns#" term="Transpose"/><title type='text'>Find the transpose of a matrix in C-Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Find the transpose of a matrix in C-Programming:&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;First of all we have to know what is the definition of the transpose of a matrix. For a matrix A, we define the transpose of A by A&lt;sup&gt;T&lt;/sup&gt; interchanging the elements of corresponding row and column of A. More easily we have to swap the 1st row with the 1st column and 2nd row with the 2nd column and so on. So here we find the transpose of a matrix in C-Programming.&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfTGEGNSqwOqfQCAXb8VS4c8BQuWZzTJ-N8HoiNXxghPoiGCpGNA1K9WDaqbaszr4wad6sUTge1hmXdWGbLFDzIlL-zbViHkBsfn996wqBvYXBVBz9sZkBngcZ4Q3PjmBCHreiB_v4m9hv/s1600/transpose12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Find the transpose of a matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;288&quot; data-original-width=&quot;844&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfTGEGNSqwOqfQCAXb8VS4c8BQuWZzTJ-N8HoiNXxghPoiGCpGNA1K9WDaqbaszr4wad6sUTge1hmXdWGbLFDzIlL-zbViHkBsfn996wqBvYXBVBz9sZkBngcZ4Q3PjmBCHreiB_v4m9hv/s640/transpose12.png&quot; title=&quot;Find the transpose of a matrix in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;Transpose of Matrix&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2. &lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;use of array&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;You can also see:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;R&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;epresentation of a matrix&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/sum-of-two-matrix-in-c-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Sum of two matrix&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEmvpqEmFy8dvvbtZF4ttTIEr6D2nuMvYdTbc5XESNK58JmWrLov4s4HfEK81RSPPRvPv_5diHdzACmj1yHgbiHAABQSM68mEQAWGTEXhYG2sLFSXTd_tvB-MvQjanpPaS27Kq3ZXRZxEK/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the transpose of a matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;878&quot; data-original-width=&quot;1405&quot; height=&quot;398&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEmvpqEmFy8dvvbtZF4ttTIEr6D2nuMvYdTbc5XESNK58JmWrLov4s4HfEK81RSPPRvPv_5diHdzACmj1yHgbiHAABQSM68mEQAWGTEXhYG2sLFSXTd_tvB-MvQjanpPaS27Kq3ZXRZxEK/s640/Untitled.png&quot; title=&quot;Find the transpose of a matrix in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuwXu0f2b7u33jKpelpqweHSB10cYfdJ-9Epv_ABR6BBdNJ4sUBRSATzOxH1dJnYNoGwHYI7gIzWkv3Sm-3T1XdEXd-UYVF_6_FYDKww6UBUzu2onk9hyq9Ls9tOfOH6kCZL_nnHC5UwNd/s1600/transpose.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the transpose of a matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;89&quot; data-original-width=&quot;977&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuwXu0f2b7u33jKpelpqweHSB10cYfdJ-9Epv_ABR6BBdNJ4sUBRSATzOxH1dJnYNoGwHYI7gIzWkv3Sm-3T1XdEXd-UYVF_6_FYDKww6UBUzu2onk9hyq9Ls9tOfOH6kCZL_nnHC5UwNd/s640/transpose.png&quot; title=&quot;Find the transpose of a matrix in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int n,m,i,j,a[20][20];&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the order of the matrix:&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d%d&quot;,&amp;amp;n,&amp;amp;m);&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the element of the matrix row wise:&quot;);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;m;j++)&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a[i][j]);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; printf(&quot;The given matrix is:\n&quot;);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;m;j++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; printf(&quot;%d \t&quot;,a[i][j]);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; printf(&quot;The transpose of the given matrix is:\n&quot;);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;m;i++)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;%d \t&quot;,a[j][i]);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The output is:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV9lCSHky0HM_GbLeAoScEDTr1tp1znjx9pju9nG7raTgZrJH8WDUjyxYr4-6Jmq849f-9lRy7zMV_bEjqk-A0W4gaPuc6hkoJZv3W6AbLmX84YJimj_XHldDAoh85LY6r67CDiTFEGWiR/s1600/transpose1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the transpose of a matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;436&quot; data-original-width=&quot;586&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV9lCSHky0HM_GbLeAoScEDTr1tp1znjx9pju9nG7raTgZrJH8WDUjyxYr4-6Jmq849f-9lRy7zMV_bEjqk-A0W4gaPuc6hkoJZv3W6AbLmX84YJimj_XHldDAoh85LY6r67CDiTFEGWiR/s640/transpose1.png&quot; title=&quot;Find the transpose of a matrix in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; First we used the &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;header package&lt;/span&gt;&lt;/b&gt;&lt;/a&gt; &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;. Visit &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Header package&lt;/span&gt;&lt;/b&gt;&lt;/a&gt; to know more.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt; We include the integer variables &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;n,m,i,j&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;a[20][20]&lt;/span&gt;&lt;/b&gt;. First we used &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;n &lt;/span&gt;&lt;/b&gt;for store how many row and &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;m&lt;/span&gt;&lt;/b&gt; for how many column. &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;i&lt;/span&gt;&lt;/b&gt; and &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;j&lt;/b&gt;&lt;/span&gt; have been used for &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;/b&gt;. &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;a[20][20]&lt;/b&gt;&lt;/span&gt; has been used to store the element of the matrix. Here we use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;a[20][20]&lt;/span&gt;&lt;/b&gt; for store only the integer element in the matrix, you can use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;float a[20][20] &lt;/span&gt;&lt;/b&gt;for store the real number.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; Then we store the order of the matrix in &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;m&lt;/span&gt;&lt;/b&gt; with &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;scanf&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;4. &lt;/span&gt;&lt;/b&gt;Then we store all the elements of the matrix using &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;/b&gt; row wise.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;5.&lt;/span&gt;&lt;/b&gt; After that we display the matrix using for-loop by printf syntax.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;6.&lt;/span&gt;&lt;/b&gt; Next we display the transpose of the matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;Lets see with an example how the first for-loop works-&lt;/span&gt;&lt;br /&gt;
The loops is like this:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;m;j++)&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a[i][j]);&lt;br /&gt;
&amp;nbsp; }&lt;/blockquote&gt;
Suppose that user want to type a &lt;span style=&quot;color: red;&quot;&gt;3x2&lt;/span&gt; matrix. So &lt;span style=&quot;color: red;&quot;&gt;n=3&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;m=2&lt;/span&gt;, now 1st for-loop start from &lt;span style=&quot;color: red;&quot;&gt;i=0&lt;/span&gt; which less than &lt;span style=&quot;color: red;&quot;&gt;3&lt;/span&gt; so it will go into 2nd for loop and start with &lt;span style=&quot;color: red;&quot;&gt;j=0&lt;/span&gt; which is less than 2 so it will enter in the bracket of 2nd for-loop and scan the number and store it in &lt;span style=&quot;color: red;&quot;&gt;00&lt;/span&gt; position. Now it will leave from the bracket and increased by &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt; so &lt;span style=&quot;color: red;&quot;&gt;j&lt;/span&gt; will be now &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt; and which is less than &lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt; so it again enter into the 2nd &lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt; and doing the same process and it will store the number in the &lt;span style=&quot;color: red;&quot;&gt;01&lt;/span&gt; position and exit and increasing&lt;span style=&quot;color: red;&quot;&gt; j&lt;/span&gt; with &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;. Now&lt;span style=&quot;color: red;&quot;&gt; j&lt;/span&gt; will be&lt;span style=&quot;color: red;&quot;&gt; 2&lt;/span&gt; which is not less that &lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt; therefore it will not entered in the &lt;span style=&quot;color: red;&quot;&gt;2nd for-loop&lt;/span&gt;.&amp;nbsp; It will again enter 1st for-loop for &lt;span style=&quot;color: red;&quot;&gt;i=1&lt;/span&gt; and doing the same process and exit and will increase the value of &lt;span style=&quot;color: red;&quot;&gt;i&lt;/span&gt; that is, it will be &lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt; which is less than &lt;span style=&quot;color: red;&quot;&gt;3&lt;/span&gt; and it will enter in the &lt;span style=&quot;color: red;&quot;&gt;1st for-loop&lt;/span&gt; and doing the same process. It will running till the condition is satisfied.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/8742361782590696897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/Transpose-of-matrix-in-c-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/8742361782590696897'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/8742361782590696897'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/Transpose-of-matrix-in-c-programming.html' title='Find the transpose of a matrix in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfTGEGNSqwOqfQCAXb8VS4c8BQuWZzTJ-N8HoiNXxghPoiGCpGNA1K9WDaqbaszr4wad6sUTge1hmXdWGbLFDzIlL-zbViHkBsfn996wqBvYXBVBz9sZkBngcZ4Q3PjmBCHreiB_v4m9hv/s72-c/transpose12.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-3741591962776237789</id><published>2019-02-22T23:26:00.000+05:30</published><updated>2019-02-22T23:37:16.750+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="float"/><category scheme="http://www.blogger.com/atom/ns#" term="if-else"/><title type='text'>Find the largest number in C-Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Find the largest number in C-Programming:&lt;/span&gt;&lt;/h2&gt;
&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Here we find the largest number among 3 three numbers&lt;/span&gt;. We first give the required code then we will explain. This programming is valid for real numbers not for &lt;span style=&quot;color: red;&quot;&gt;complex numbers&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNHCWaU5xksu9LFNr3gidYx-2nchnD1uek-4lfFKP_mz-lHKCrJjrkzmixCGo07zigGuL8zSIAfYLogd_gBxeSZTqLlnL5EQ-vWISc_zS8Azhu0RXt8wSIpAozywCaXaGebtgb3FqxBiXT/s1600/largest+number12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the largest number in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;414&quot; data-original-width=&quot;1291&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNHCWaU5xksu9LFNr3gidYx-2nchnD1uek-4lfFKP_mz-lHKCrJjrkzmixCGo07zigGuL8zSIAfYLogd_gBxeSZTqLlnL5EQ-vWISc_zS8Azhu0RXt8wSIpAozywCaXaGebtgb3FqxBiXT/s640/largest+number12.png&quot; title=&quot;Find the largest number in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important Tools:&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; if-else&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTT14ndjxBCGPdczj_jeyqnPxzLx2CM_QzdQpECy60FEa7Mn_jtGkSdMuZp4velYUiLam7EliiMCWDbmGzmMxwc0DrnqpIVFDHvJJxJFAJyEdqE4H7vipKj_AxocbEncFNsDZm113nYxKN/s1600/largest+number.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the largest number in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;443&quot; data-original-width=&quot;844&quot; height=&quot;334&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTT14ndjxBCGPdczj_jeyqnPxzLx2CM_QzdQpECy60FEa7Mn_jtGkSdMuZp4velYUiLam7EliiMCWDbmGzmMxwc0DrnqpIVFDHvJJxJFAJyEdqE4H7vipKj_AxocbEncFNsDZm113nYxKN/s640/largest+number.png&quot; title=&quot;Find the largest number in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; float a,b,c;&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the three numbers:&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%f%f%f&quot;,&amp;amp;a,&amp;amp;b,&amp;amp;c);&lt;br /&gt;
&amp;nbsp; if(a&amp;gt;b &amp;amp;&amp;amp; a&amp;gt;c)&lt;br /&gt;
&amp;nbsp; printf(&quot;%f is the largest number among %f,%f,%f&quot;,a,a,b,c);&lt;br /&gt;
&amp;nbsp; if(b&amp;gt;a &amp;amp;&amp;amp; b&amp;gt;c)&lt;br /&gt;
&amp;nbsp; printf(&quot;%f is the largest number among %f,%f,%f&quot;,b,a,b,c);&lt;br /&gt;
&amp;nbsp; else&lt;br /&gt;
&amp;nbsp; printf(&quot;%f is the largest number among %f,%f,%f&quot;,c,a,b,c);&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: red;&quot;&gt;The output is given below:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLZ3uAlxwK-FxfXvug_tyHlfwzYPs0_3KzojkhidXT6zupktePVQO2Y1ohtw7rQyqlXz7KZB1sBCsN0ZokUV1Z2lTOmkOjN0p1J3jnRZbhyphenhyphencu7vLWsWYJ5yYHe0gP5X32Ks0jiTC143vBA/s1600/largest+number1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the largest number in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;314&quot; data-original-width=&quot;853&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLZ3uAlxwK-FxfXvug_tyHlfwzYPs0_3KzojkhidXT6zupktePVQO2Y1ohtw7rQyqlXz7KZB1sBCsN0ZokUV1Z2lTOmkOjN0p1J3jnRZbhyphenhyphencu7vLWsWYJ5yYHe0gP5X32Ks0jiTC143vBA/s640/largest+number1.png&quot; title=&quot;Find the largest number in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; First of all we used &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;header package&lt;/span&gt;&lt;/b&gt;&lt;/a&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt; We use 3 float variables &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;a,b,c&lt;/span&gt;&lt;/b&gt; for store the three numbers which are given by the users.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; We use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;if-else&lt;/span&gt;&lt;/b&gt; here. First if is used for if &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;a&lt;/span&gt;&lt;/b&gt; is the largest and the second if is used for if &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;b&lt;/span&gt;&lt;/b&gt; is largest and for&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; c&lt;/b&gt;&lt;/span&gt; we use the else case. For know more about the use of if-else command, please visit our &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;syntax page&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt; Point that i don&#39;t use any curly bracket after the command if and else. Since only one statement are there after if command and also after else command so it not necessary to use this curly bracket. You can use it if you want there is no problem.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;If you have any doubts comment below.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/3741591962776237789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-largest-number-in-c-programming.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/3741591962776237789'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/3741591962776237789'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-largest-number-in-c-programming.html' title='Find the largest number in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNHCWaU5xksu9LFNr3gidYx-2nchnD1uek-4lfFKP_mz-lHKCrJjrkzmixCGo07zigGuL8zSIAfYLogd_gBxeSZTqLlnL5EQ-vWISc_zS8Azhu0RXt8wSIpAozywCaXaGebtgb3FqxBiXT/s72-c/largest+number12.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-2510078762542865818</id><published>2019-02-20T23:27:00.000+05:30</published><updated>2019-02-20T23:27:20.351+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="if-else"/><category scheme="http://www.blogger.com/atom/ns#" term="matrix"/><category scheme="http://www.blogger.com/atom/ns#" term="Sum"/><title type='text'>Sum Of Two Matrix in C-Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sum Of Two Matrix in C-Programming&lt;/span&gt;:&lt;/h2&gt;
&amp;nbsp;We will add two &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;matrix&lt;/span&gt;&lt;/b&gt; in &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;C-Programming&lt;/b&gt;&lt;/span&gt;. First we have to know that how to add two matrix. So two matrix can be added if the order of this two matrix are same. Now how the addition is defined? - the matrix addition is defined as in the given picture.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEBzmXk_1LfC7OdYhM0y3lImmRLVT7bcFReLcsFwGt20BwcL1rOJ5-cA2in4WbEtqiRLrY4WsHYx801veAeXN8C-1sjyFJ5_Ug4h6tcedg-jYuUoVebp4IwV8WSSuWjIIKUZjR0cXRAuw/s1600/sum+of+two+matrix12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Sum Of Two Matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;374&quot; data-original-width=&quot;1514&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEBzmXk_1LfC7OdYhM0y3lImmRLVT7bcFReLcsFwGt20BwcL1rOJ5-cA2in4WbEtqiRLrY4WsHYx801veAeXN8C-1sjyFJ5_Ug4h6tcedg-jYuUoVebp4IwV8WSSuWjIIKUZjR0cXRAuw/s640/sum+of+two+matrix12.png&quot; title=&quot;Sum Of Two Matrix in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Important Tools:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt; array&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;3.&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;if-else&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoFkRQqEli9kMPs0ohm7TYhjk6yB1NVeYlByTlqIXuhqqAUl0akE8w81jVMsv9nKp_ZlVH_2KIKfCdGOWyXLdRLZHY0P0ixAt6S2Z-qdmzvGmclUZ3egUb9SyK-dPSbDvnfjrdWc2zZRhR/s1600/sum+of+two+matrix1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Sum Of Two Matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;1600&quot; data-original-width=&quot;764&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoFkRQqEli9kMPs0ohm7TYhjk6yB1NVeYlByTlqIXuhqqAUl0akE8w81jVMsv9nKp_ZlVH_2KIKfCdGOWyXLdRLZHY0P0ixAt6S2Z-qdmzvGmclUZ3egUb9SyK-dPSbDvnfjrdWc2zZRhR/s1600/sum+of+two+matrix1.png&quot; title=&quot;Sum Of Two Matrix in C-Programming&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int m,n,m1,n1,a[50][50],i,j,b[50][50],c[50][50];&lt;br /&gt;printf(&quot;Enter the order of the first matrix: &quot;);&lt;br /&gt;scanf(&quot;%d%d&quot;,&amp;amp;m,&amp;amp;n);&lt;br /&gt;printf(&quot;Enter the order of the second matrix: &quot;);&lt;br /&gt;scanf(&quot;%d%d&quot;,&amp;amp;m1,&amp;amp;n1);&lt;br /&gt;//Condition for addition&lt;br /&gt;if(m!=m1||n!=n1)&lt;br /&gt;printf(&quot;The sum is not possible&quot;);&lt;br /&gt;//The first matrix scan and print&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;printf(&quot;Enter the first matrix row wise: &quot;);&lt;br /&gt;for(i=0;i&amp;lt;m;i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a[i][j]);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;printf(&quot;The 1st matrix is:\n&quot;);&lt;br /&gt;for(i=0;i&amp;lt;m;i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; printf(&quot;%d\t&quot;,a[i][j]);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;printf(&quot;\n&quot;);&lt;br /&gt;}&lt;br /&gt;//the second matrix scan and print&lt;br /&gt;printf(&quot;Enter the 2nd matrix row wise:\n&quot;);&lt;br /&gt;for(i=0;i&amp;lt;m;i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;b[i][j]);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;printf(&quot;The 2nd matrix is:\n&quot;);&lt;br /&gt;for(i=0;i&amp;lt;m;i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; printf(&quot;%d\t&quot;,b[i][j]);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;printf(&quot;\n&quot;);&lt;br /&gt;}&lt;br /&gt;//addition of two matrix print&lt;br /&gt;printf(&quot;The sum of the matrix\n&quot;);&lt;br /&gt;for(i=0;i&amp;lt;m;i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; c[i][j]=a[i][j]+b[i][j];&lt;br /&gt;&amp;nbsp; printf(&quot;%d\t&quot;,c[i][j]);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: red;&quot;&gt;The output is given below&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNReBxdk9wphstv1E7_z9sstFmjf8q5hQqor96mkdiqnEGoEIpbcz4m2DrJuSPlc8EL4BuHZfaEVqHWkBq0W_SWvkZ_3_BUTE2SzNP9gZ_BnV-X4EhtTXH9acKC2BIy1IxxiOF7aba-km-/s1600/sum+of+two+matrix.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Sum Of Two Matrix in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;525&quot; data-original-width=&quot;588&quot; height=&quot;570&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNReBxdk9wphstv1E7_z9sstFmjf8q5hQqor96mkdiqnEGoEIpbcz4m2DrJuSPlc8EL4BuHZfaEVqHWkBq0W_SWvkZ_3_BUTE2SzNP9gZ_BnV-X4EhtTXH9acKC2BIy1IxxiOF7aba-km-/s640/sum+of+two+matrix.png&quot; title=&quot;Sum Of Two Matrix in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;1.&lt;/b&gt;&lt;/span&gt; We use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt; and&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; &amp;lt;conio.h&amp;gt;&lt;/b&gt;&lt;/span&gt; two &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;header package&lt;/a&gt;.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt; first of all we check the condition for the addition of two matrix. So we use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;if-else&lt;/span&gt;&lt;/b&gt; condition for that. If the order of two matrix is equal then it can be added if not it is impossible.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; We use&amp;nbsp; &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;m,n,m1,n1,a[50][50],i,j,b[50][50] &lt;/span&gt;and&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt; c[50][50] &lt;/span&gt;variable here. &lt;span style=&quot;color: red;&quot;&gt;m&lt;/span&gt; and&lt;span style=&quot;color: red;&quot;&gt; n&lt;/span&gt; are used for the order of the 1st matrix and &lt;span style=&quot;color: red;&quot;&gt;n1&lt;/span&gt; and&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;m1&lt;/span&gt; are used for order of 2nd matrix. &lt;span style=&quot;color: red;&quot;&gt;a[50][50] &lt;/span&gt;and &lt;span style=&quot;color: red;&quot;&gt;b[50][50]&lt;/span&gt; are used for store the given two matrices and we used &lt;span style=&quot;color: red;&quot;&gt;c[50][50]&lt;/span&gt; to store and show the sum of two given matrices. And&lt;span style=&quot;color: red;&quot;&gt; i &lt;/span&gt;and &lt;span style=&quot;color: red;&quot;&gt;j&lt;/span&gt; are used in the loop.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt; First we scan and store two matrices in the variable &lt;span style=&quot;color: red;&quot;&gt;a[50][50]&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;b[50][50]&lt;/span&gt; respectively using for-loop for know more see &lt;a href=&quot;https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html&quot; target=&quot;_blank&quot;&gt;my post&lt;/a&gt;. After that we add the two matrices and store it in the variable &lt;span style=&quot;color: red;&quot;&gt;c[50][50]&lt;/span&gt;. Therefore we print the &lt;span style=&quot;color: red;&quot;&gt;c[50][50]&lt;/span&gt; variable using &lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/2510078762542865818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-two-matrix-in-c-programming.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/2510078762542865818'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/2510078762542865818'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-two-matrix-in-c-programming.html' title='Sum Of Two Matrix in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEBzmXk_1LfC7OdYhM0y3lImmRLVT7bcFReLcsFwGt20BwcL1rOJ5-cA2in4WbEtqiRLrY4WsHYx801veAeXN8C-1sjyFJ5_Ug4h6tcedg-jYuUoVebp4IwV8WSSuWjIIKUZjR0cXRAuw/s72-c/sum+of+two+matrix12.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-7553133696072222277</id><published>2019-02-20T19:31:00.003+05:30</published><updated>2019-02-20T19:31:48.960+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="matrix"/><title type='text'>Print a MATRIX in C-Programming using array</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Print a MATRIX in C-Programming using array&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;/h2&gt;
Here we print a matrix with the help of array; so what is a matrix? - &lt;span style=&quot;color: red;&quot;&gt;Matrix is a collection of numbers arranged into a fixed number of rows and columns&lt;/span&gt;. The numbers can be real or complex, but we use real numbers here.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGBC5j9f3cA-vGwfXWHd8l-H_RA7g4oIwGzcJ9IRv5lwXPT8Axt6BKKbdszP23Uii_QVPiiTUlLyJwO5HMlgWijH24_-ZE7GJgz7tjX-0HJ6xgmFCRuD5oKWB1zz0ONLDkhK02R2FLRBSi/s1600/Matrix2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Print a MATRIX in C-Programming using array&quot; border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;1130&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGBC5j9f3cA-vGwfXWHd8l-H_RA7g4oIwGzcJ9IRv5lwXPT8Axt6BKKbdszP23Uii_QVPiiTUlLyJwO5HMlgWijH24_-ZE7GJgz7tjX-0HJ6xgmFCRuD5oKWB1zz0ONLDkhK02R2FLRBSi/s640/Matrix2.png&quot; title=&quot;Print a MATRIX in C-Programming using array&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYWsj1fDgAP7fmstesOD5Fvcf0GbWayBgX4myKMrzzBD2z2KZQrLpWW-hR79fjA1WAgtOsw-cDZQiSOG3ffwPrmkX8JVQ_KBJsuJwJ-vskhSBrROoG5tuTi2OPWgUnDAQ9xBS4lojLKW1Y/s1600/Matrix.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Print a MATRIX in C-Programming using array&quot; border=&quot;0&quot; data-original-height=&quot;710&quot; data-original-width=&quot;1197&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYWsj1fDgAP7fmstesOD5Fvcf0GbWayBgX4myKMrzzBD2z2KZQrLpWW-hR79fjA1WAgtOsw-cDZQiSOG3ffwPrmkX8JVQ_KBJsuJwJ-vskhSBrROoG5tuTi2OPWgUnDAQ9xBS4lojLKW1Y/s640/Matrix.png&quot; title=&quot;Print a MATRIX in C-Programming using array&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int m,n,a[100][100],i,j;&lt;br /&gt;
&amp;nbsp; printf(&quot;Enter the order of the matrix:\n&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d%d&quot;,&amp;amp;m,&amp;amp;n);&lt;br /&gt;
&amp;nbsp; printf(&quot;Give the %d*%d matrix&quot;,m,n);&lt;br /&gt;
&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;Enter the %d row\n&quot;,i+1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(j=0;j&amp;lt;m;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a[i][j]);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; printf(&quot;The given matrix is:\n&quot;);&lt;br /&gt;
&amp;nbsp; for (i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(j=0;j&amp;lt;m;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;%d\t&quot;,a[i][j]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&amp;nbsp;&lt;/h3&gt;
The output is given below-&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPUejHOkfCFIahg_j5-yN91c_Ap-TclSk67jiawvSx5FOKmGVUR7N1sosnn8bFHHwLxYLypY_TKqoHBJVdkB8nE5RTNrf0Tf_0Fyz86yBzkEMwT_tvuOHLHcr7j4HKk_eg49nhYfq_SgAS/s1600/Matrix1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Print a MATRIX in C-Programming using array&quot; border=&quot;0&quot; data-original-height=&quot;440&quot; data-original-width=&quot;719&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPUejHOkfCFIahg_j5-yN91c_Ap-TclSk67jiawvSx5FOKmGVUR7N1sosnn8bFHHwLxYLypY_TKqoHBJVdkB8nE5RTNrf0Tf_0Fyz86yBzkEMwT_tvuOHLHcr7j4HKk_eg49nhYfq_SgAS/s640/Matrix1.png&quot; title=&quot;Print a MATRIX in C-Programming using array&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&amp;nbsp;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; First we use header package &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt; and &amp;lt;conio.h&amp;gt;. To know more visit &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;package page&lt;/a&gt;.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt; We use &lt;span style=&quot;color: red;&quot;&gt;5&lt;/span&gt; integer variables. we use &lt;span style=&quot;color: red;&quot;&gt;m&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt; for taking the order of the matrix. Then we use &lt;span style=&quot;color: red;&quot;&gt;a[100][100]&lt;/span&gt; variable which called array its means that a variable has 100x100 box space, easily you can think that it would give a 10000 box space. You can change the array size 100 by changing it with any number. We use&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; i&lt;/span&gt;&lt;/b&gt; and &lt;span style=&quot;color: red;&quot;&gt;j&lt;/span&gt; variable for the use of &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;for-loop&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; First we take the order of the matrix by users and store it in&lt;span style=&quot;color: red;&quot;&gt; m&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;n.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;4.&lt;/b&gt;&lt;/span&gt; After that we store the numbers in variable &lt;span style=&quot;color: red;&quot;&gt;a[100][100]&lt;/span&gt; with the help of &lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;. we scan the numbers and store all the numbers in &lt;span style=&quot;color: red;&quot;&gt;a[100][100]&lt;/span&gt; variable. Now we have to print all the numbers that we stored it in the variable &lt;span style=&quot;color: red;&quot;&gt;a[100][100]&lt;/span&gt;, for that we use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;for-loop&lt;/b&gt;&lt;/span&gt; again for to print those numbers.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;If you have any doubts then comment below.&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/7553133696072222277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/7553133696072222277'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/7553133696072222277'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/print-matrix-in-c-programming-using.html' title='Print a MATRIX in C-Programming using array'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGBC5j9f3cA-vGwfXWHd8l-H_RA7g4oIwGzcJ9IRv5lwXPT8Axt6BKKbdszP23Uii_QVPiiTUlLyJwO5HMlgWijH24_-ZE7GJgz7tjX-0HJ6xgmFCRuD5oKWB1zz0ONLDkhK02R2FLRBSi/s72-c/Matrix2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-4581937298546621917</id><published>2019-02-17T22:35:00.001+05:30</published><updated>2019-02-17T22:35:30.983+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Fibonacci"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><title type='text'>Find the terms of Fibonacci sequence in C-Programming (Using For-loop)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Find the terms of Fibonacci sequence in C-Programming (Using For-loop):&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/h2&gt;
First of all we have to know what is &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Fibonacci Sequence&lt;/span&gt;&lt;/b&gt;. So Fibonacci sequence starts with two initial value &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;/b&gt;. After that the next term of the sequence will be addition of &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;0&lt;/b&gt;&lt;/span&gt; and&lt;span style=&quot;color: red;&quot;&gt; &lt;b&gt;1&lt;/b&gt;&lt;/span&gt; that is&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; 1&lt;/span&gt;&lt;/b&gt;.Now we have three terms of the sequence they are &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;0,1,1&lt;/span&gt;&lt;/b&gt; now next term will be addition of previous two terms that is&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; 1&lt;/b&gt;&lt;/span&gt; and &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;/b&gt; so 4th term of the sequence would be &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt; and so on. Generally the Fibonacci sequence is like &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;{0,1,1,2,3,5,8,13,21,35,...}&lt;/span&gt;&lt;/b&gt;. Now we will do it on C-Program.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Jd9suJGBvIuy_ZhnLlszy1Cn98OUt5ly_69El7ePqYl0rZa81x0P3Kk1BqEHTq0j810IGES2teZjMLk47RqWSpeccYvoZcBjlOyCJzhUN0jgyDOecGoofxZGzFBEAgt3vRWrZYa57_qa/s1600/Fibonacci12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the terms of Fibonacci sequence in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;367&quot; data-original-width=&quot;1429&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Jd9suJGBvIuy_ZhnLlszy1Cn98OUt5ly_69El7ePqYl0rZa81x0P3Kk1BqEHTq0j810IGES2teZjMLk47RqWSpeccYvoZcBjlOyCJzhUN0jgyDOecGoofxZGzFBEAgt3vRWrZYa57_qa/s640/Fibonacci12.png&quot; title=&quot;Find the terms of Fibonacci sequence in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFAOAEzmLQr55CDDyS0bqD1sQ7-GWG_aWjiMwAAMNZm3dCMOpAPLvngEtM-9znNP34NgOOUmrutjW69wHFhK40VSIvddL1fi2TqpXwJBy3nj7WYXVsAfELiJohgj89w3WGMzMnbCpe4T6H/s1600/Fibonacci.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the terms of Fibonacci sequence in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;505&quot; data-original-width=&quot;769&quot; height=&quot;418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFAOAEzmLQr55CDDyS0bqD1sQ7-GWG_aWjiMwAAMNZm3dCMOpAPLvngEtM-9znNP34NgOOUmrutjW69wHFhK40VSIvddL1fi2TqpXwJBy3nj7WYXVsAfELiJohgj89w3WGMzMnbCpe4T6H/s640/Fibonacci.png&quot; title=&quot;Find the terms of Fibonacci sequence in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int n,f=0,s=1,sum,i;&lt;br /&gt;
&amp;nbsp; printf(&quot;How many term you want to see:&quot;);&lt;br /&gt;
&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&amp;nbsp; printf(&quot;The first %d terms are\n&quot;,n);&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; printf(&quot;%d\n&quot;,f);&lt;br /&gt;
&amp;nbsp; sum=f+s;&lt;br /&gt;
&amp;nbsp; f=s;&lt;br /&gt;
&amp;nbsp; s=sum;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&amp;nbsp;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;The output is given below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4FrcN9EEVvj1jhd0VULGCVgO_XcyeoxLDYWdDBl-dAIbXj_b0wEFhwZWTCHLG_sJVoQ4SFhCRsgbnyORnYJ11lEeM18zLeW3NXo10q2cpxXWY2CscmaIm6HRW384mK2FaxI60wtoHtnhf/s1600/Fibonacci1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the terms of Fibonacci sequence in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;445&quot; data-original-width=&quot;800&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4FrcN9EEVvj1jhd0VULGCVgO_XcyeoxLDYWdDBl-dAIbXj_b0wEFhwZWTCHLG_sJVoQ4SFhCRsgbnyORnYJ11lEeM18zLeW3NXo10q2cpxXWY2CscmaIm6HRW384mK2FaxI60wtoHtnhf/s640/Fibonacci1.png&quot; title=&quot;Find the terms of Fibonacci sequence in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; We use the Header package &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;lt;stdio.h&amp;gt;&lt;/b&gt;&lt;/span&gt;.&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt; Next we introduce &lt;span style=&quot;color: red;&quot;&gt;5&lt;/span&gt; integers variables &lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt;,&lt;span style=&quot;color: red;&quot;&gt;f&lt;/span&gt;,&lt;span style=&quot;color: red;&quot;&gt;s&lt;/span&gt;,&lt;span style=&quot;color: red;&quot;&gt;sum&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;i&lt;/span&gt;. Now we use &#39;&lt;span style=&quot;color: red;&quot;&gt;n&#39;&lt;/span&gt; for save the value that how many terms the users want to find. Next we use&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&#39;f&#39;&lt;/span&gt; and &#39;&lt;span style=&quot;color: red;&quot;&gt;s&#39;&lt;/span&gt; for the initializing. Since Fibonacci sequence is starting with &lt;span style=&quot;color: red;&quot;&gt;0&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt; so we save the initial value of &#39;&lt;span style=&quot;color: red;&quot;&gt;f&#39;&lt;/span&gt; is&lt;span style=&quot;color: red;&quot;&gt; 0&lt;/span&gt; and &#39;&lt;span style=&quot;color: red;&quot;&gt;s&#39;&lt;/span&gt; is &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;. We use &#39;&lt;span style=&quot;color: red;&quot;&gt;sum&#39;&lt;/span&gt; to add the numbers and &#39;&lt;span style=&quot;color: red;&quot;&gt;i&#39;&amp;nbsp;&lt;/span&gt;for &lt;span style=&quot;color: red;&quot;&gt;loop&lt;/span&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; We use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax.html&quot; target=&quot;_blank&quot;&gt;for-loop&lt;/a&gt;&lt;/span&gt;&lt;/b&gt; here. First we introduce the condition &lt;span style=&quot;color: red;&quot;&gt;i&lt;/span&gt; starts from&lt;span style=&quot;color: red;&quot;&gt; 0&lt;/span&gt; and increasing by &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt; it will stop at &#39;&lt;span style=&quot;color: red;&quot;&gt;n&#39;&lt;/span&gt;(&lt;span style=&quot;color: purple;&quot;&gt;users input this number&lt;/span&gt;).&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;4. &lt;/span&gt;&lt;/b&gt;Every time in for loop first print the value of f then it will do the &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;sum=f+s &lt;/span&gt;&lt;/b&gt;then we save &#39;&lt;span style=&quot;color: red;&quot;&gt;f&#39;&lt;/span&gt; in &#39;&lt;span style=&quot;color: red;&quot;&gt;s&#39;&lt;/span&gt;&amp;nbsp;and after that save &#39;&lt;span style=&quot;color: red;&quot;&gt;s&#39;&lt;/span&gt; in the variable &#39;&lt;span style=&quot;color: red;&quot;&gt;sum&#39;&lt;/span&gt;. So what is happened here, first it will print &lt;span style=&quot;color: red;&quot;&gt;0 &lt;/span&gt;since 0 is the initial value of &#39;&lt;span style=&quot;color: red;&quot;&gt;f&#39;&lt;/span&gt;, then &lt;span style=&quot;color: red;&quot;&gt;sum=0+1=1 &lt;/span&gt;after that&lt;span style=&quot;color: red;&quot;&gt; f=1&lt;/span&gt; since the initial value of&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&#39;s&#39;&lt;/span&gt; is &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;. After that &lt;span style=&quot;color: red;&quot;&gt;s=1&lt;/span&gt; since &#39;&lt;span style=&quot;color: red;&quot;&gt;sum&#39;&lt;/span&gt; has the value &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;. Again loop is begin and print the value of &#39;&lt;span style=&quot;color: red;&quot;&gt;f&#39;&lt;/span&gt; i.e &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt; here and continue in this way.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;If you have any doubts please comment below.&lt;/span&gt;&amp;nbsp;&lt;/h4&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/4581937298546621917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-terms-of-fibonacci-sequence-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/4581937298546621917'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/4581937298546621917'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-terms-of-fibonacci-sequence-in-c.html' title='Find the terms of Fibonacci sequence in C-Programming (Using For-loop)'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Jd9suJGBvIuy_ZhnLlszy1Cn98OUt5ly_69El7ePqYl0rZa81x0P3Kk1BqEHTq0j810IGES2teZjMLk47RqWSpeccYvoZcBjlOyCJzhUN0jgyDOecGoofxZGzFBEAgt3vRWrZYa57_qa/s72-c/Fibonacci12.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-6180651929928425528</id><published>2019-02-16T22:43:00.000+05:30</published><updated>2019-02-16T22:43:19.694+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="for-loop"/><category scheme="http://www.blogger.com/atom/ns#" term="Sum"/><title type='text'>Sum of n real numbers using array</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sum of n real numbers using array:&lt;/span&gt;&amp;nbsp;&lt;/h2&gt;
&lt;span style=&quot;color: red;&quot;&gt;Here we want to sum the numbers using array&lt;/span&gt;. you can give many numbers and add them by &lt;span style=&quot;color: red;&quot;&gt;array&lt;/span&gt;. We introducing here the array syntax. For example &lt;span style=&quot;color: red;&quot;&gt;1+2+3+2+5&lt;/span&gt;. First we will give the code and after that we will explain.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSCEqH9yyjS1INSkDNJbBH8J5SYNp0ETovqPsKJTeEZT_96EtPph0e-dyDAYmhwz3fij5StEUkyqS8LU-0NrjB2gWjClIo36B_L9SkUy0BOxo3zcX-mET7gXBllSl2FkpDK0tEW9ClowyK/s1600/Sumofnnumbers12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Sum of n real numbers using array&quot; border=&quot;0&quot; data-original-height=&quot;396&quot; data-original-width=&quot;973&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSCEqH9yyjS1INSkDNJbBH8J5SYNp0ETovqPsKJTeEZT_96EtPph0e-dyDAYmhwz3fij5StEUkyqS8LU-0NrjB2gWjClIo36B_L9SkUy0BOxo3zcX-mET7gXBllSl2FkpDK0tEW9ClowyK/s640/Sumofnnumbers12.png&quot; title=&quot;Sum of n real numbers using array&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ4btyB2Nc90wKWZMIouvjnj6dktwQURCOW7VRb4Aav5PuJQ3dOUgY_TftJjciSbliV5MkZPaX204KCf0CCEw0OMdORTQ1X_8YTDk23y9EHGVagWBzPgGSA6Tqp1iRK-RtqEGohurzeRfo/s1600/Sumofnnumbers.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Sum of n real numbers using array input&quot; border=&quot;0&quot; data-original-height=&quot;450&quot; data-original-width=&quot;808&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ4btyB2Nc90wKWZMIouvjnj6dktwQURCOW7VRb4Aav5PuJQ3dOUgY_TftJjciSbliV5MkZPaX204KCf0CCEw0OMdORTQ1X_8YTDk23y9EHGVagWBzPgGSA6Tqp1iRK-RtqEGohurzeRfo/s640/Sumofnnumbers.png&quot; title=&quot;Sum of n real numbers using array input&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; int i,n;&lt;br /&gt;&amp;nbsp; float a[30],sum=0;&lt;br /&gt;&amp;nbsp; printf(&quot;How many numbers you want to add:&quot;);&lt;br /&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;&amp;nbsp; scanf(&quot;%f&quot;,&amp;amp;a[i]);&lt;br /&gt;&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;&amp;nbsp; sum=sum+a[i];&lt;br /&gt;&amp;nbsp; printf(&quot;The sum of the given numbers is %.2f&quot;,sum);&lt;br /&gt;}&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;The output is given below:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWwWV7tSJrhE4HHRgsxIoPTu5QLaU4neR-Fe8emxoLRISjKD0LZCoCdtPYq595-SeeU3Q7B5cwdIMvtg7xMg6NLv5BL0ZZ2QsJMp90YP58wEuvFsyF4BPLR8Xc0FeJSk2skgpbPWkk3R2D/s1600/Sumofnnumbers1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Sum of n real numbers using array&quot; border=&quot;0&quot; data-original-height=&quot;304&quot; data-original-width=&quot;609&quot; height=&quot;198&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWwWV7tSJrhE4HHRgsxIoPTu5QLaU4neR-Fe8emxoLRISjKD0LZCoCdtPYq595-SeeU3Q7B5cwdIMvtg7xMg6NLv5BL0ZZ2QsJMp90YP58wEuvFsyF4BPLR8Xc0FeJSk2skgpbPWkk3R2D/s400/Sumofnnumbers1.png&quot; title=&quot;Sum of n real numbers using array&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt; We first use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;lt;stdio.h&amp;gt;&lt;/b&gt;&lt;/span&gt; header &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;package&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt; we use two integers variable&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; i&lt;/b&gt;&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;n &lt;/b&gt;&lt;/span&gt;and two float variable &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;a[30]&lt;/b&gt;&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;sum&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt; we use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;n&lt;/span&gt;&lt;/b&gt; for how many numbers users want to do sum and &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt; is for &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;for-loop&lt;/b&gt;&lt;/span&gt;. we use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;a[30]&lt;/b&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;array&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;variable&lt;/b&gt;&lt;/span&gt; to store the given numbers and we use sum variable to sum all the given numbers. Here you can change the array size by replacing the number &lt;span style=&quot;color: red;&quot;&gt;30&lt;/span&gt;. To know more about use of array variable visit &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax.html&quot; target=&quot;_blank&quot;&gt;syntax page&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt; We use two &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;/b&gt;. First is for take all the given value from the users and save it in the array variable&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; a[30]&lt;/span&gt;&lt;/b&gt;. Second &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;/b&gt; for doing the sum of all the numbers. To know more about &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;for-loop&lt;/span&gt;&lt;/b&gt; visit &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax.html&quot; target=&quot;_blank&quot;&gt;syntax package&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;5.&lt;/span&gt;&lt;/b&gt; After that we print the sum and we use the syntax &quot;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;%.2f&lt;/b&gt;&lt;/span&gt;&quot; for showing 2 numbers after point in sum, like &lt;span style=&quot;color: red;&quot;&gt;12.35 or 4.20&lt;/span&gt;. You can use &lt;span style=&quot;color: red;&quot;&gt;.3 or .4&lt;/span&gt; as your wish for the changing. If you use &lt;span style=&quot;color: red;&quot;&gt;.3&lt;/span&gt; then it will like &lt;span style=&quot;color: red;&quot;&gt;1.235 or 5.125.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;If you have any doubts please comment below.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/h4&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/6180651929928425528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-n-real-numbers-using-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/6180651929928425528'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/6180651929928425528'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-n-real-numbers-using-array.html' title='Sum of n real numbers using array'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSCEqH9yyjS1INSkDNJbBH8J5SYNp0ETovqPsKJTeEZT_96EtPph0e-dyDAYmhwz3fij5StEUkyqS8LU-0NrjB2gWjClIo36B_L9SkUy0BOxo3zcX-mET7gXBllSl2FkpDK0tEW9ClowyK/s72-c/Sumofnnumbers12.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-4000364077190790275</id><published>2019-02-16T21:45:00.000+05:30</published><updated>2019-02-16T21:45:05.962+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Quotient"/><category scheme="http://www.blogger.com/atom/ns#" term="Remainder"/><title type='text'>Find the quotient and remainder in C-Programming</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;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Find the quotient and remainder in C-Programming&lt;/span&gt;&lt;/b&gt;: If we divided the number &lt;span style=&quot;color: red;&quot;&gt;a&lt;/span&gt; with the number &lt;span style=&quot;color: red;&quot;&gt;b&lt;/span&gt; then we will get a form like &lt;span style=&quot;color: red;&quot;&gt;a=bq+r&lt;/span&gt;, where &lt;span style=&quot;color: red;&quot;&gt;q&lt;/span&gt; is called quotient and &lt;span style=&quot;color: red;&quot;&gt;r &lt;/span&gt;is said to be remainder. For example we divide &lt;span style=&quot;color: red;&quot;&gt;5&lt;/span&gt; with &lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt; then we will get &lt;span style=&quot;color: red;&quot;&gt;5=(2*2)+1&lt;/span&gt; so here &lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt; is quotient and &lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt; is remainder. We want to solve this with the help of C-Programming. At first we give the required code then we explain.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZ6ibY9-6Fxn2m5SQB4iBOxiDlXPY52qFkF5sFEZ4vZ-6nREzSe8Be3t_S8nSXX9U9Gkmdrjz1FKilV85ew9Ml51yKtjM8u0xbklGK6mQJTW-xUkQy7EC3hib8KdCjk2M05FJQH9RXeDo/s1600/Quotient+and+remainder14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the quotient and remainder in C-Programming&quot; border=&quot;0&quot; data-original-height=&quot;470&quot; data-original-width=&quot;1324&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZ6ibY9-6Fxn2m5SQB4iBOxiDlXPY52qFkF5sFEZ4vZ-6nREzSe8Be3t_S8nSXX9U9Gkmdrjz1FKilV85ew9Ml51yKtjM8u0xbklGK6mQJTW-xUkQy7EC3hib8KdCjk2M05FJQH9RXeDo/s640/Quotient+and+remainder14.png&quot; title=&quot;Find the quotient and remainder in C-Programming&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Code:&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTgPpTikYUyGmKxeE4Wgvz0KZwIDK37bhQO-1UPJ6IdctjI7QOH4c7g6xsJjc4MlKeMBU825WQ22Yn-E2E1RhqKOuuKvQc1Q7IftskGQhesKASK31WrUVuKnvHGQicZtDui2nkPUN6jqfW/s1600/Quotient+and+remainder.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the quotient and remainder in C-Programming input&quot; border=&quot;0&quot; data-original-height=&quot;597&quot; data-original-width=&quot;1028&quot; height=&quot;369&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTgPpTikYUyGmKxeE4Wgvz0KZwIDK37bhQO-1UPJ6IdctjI7QOH4c7g6xsJjc4MlKeMBU825WQ22Yn-E2E1RhqKOuuKvQc1Q7IftskGQhesKASK31WrUVuKnvHGQicZtDui2nkPUN6jqfW/s640/Quotient+and+remainder.png&quot; title=&quot;Find the quotient and remainder in C-Programming input&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; int a,b,q,r;&lt;br /&gt;&amp;nbsp; printf(&quot;Enter the dividend:&quot;);&lt;br /&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a);&lt;br /&gt;&amp;nbsp; printf(&quot;Enter the divisor:&quot;);&lt;br /&gt;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;b);&lt;br /&gt;&amp;nbsp; if(b==0)&lt;br /&gt;&amp;nbsp; printf(&quot;Undefined&quot;);&lt;br /&gt;&amp;nbsp; q=a/b;&lt;br /&gt;&amp;nbsp; r=a%b;&lt;br /&gt;&amp;nbsp; printf(&quot;The quotient and remainder are respectively are %d and %d&quot;,q,r);&lt;br /&gt;}&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Output:&lt;/span&gt;&lt;/h3&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
 &lt;span style=&quot;color: red;&quot;&gt;The output is given below:&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3cUD2zA-XRmOKrx62OT6nHeZLVmOSCLzj_LjGG2_fH0PV6rgJb4pBnr9aGIQkqyU0dhZngjewVVoSqiRJSryfPS2nsrrYfdKsFimYShPq5XUyV1KgEF0zISrIKVTlG04lxdv7ytkUOyuu/s1600/Quotient+and+remainder1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the quotient and remainder in C-Programmingoutput&quot; border=&quot;0&quot; data-original-height=&quot;266&quot; data-original-width=&quot;721&quot; height=&quot;147&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3cUD2zA-XRmOKrx62OT6nHeZLVmOSCLzj_LjGG2_fH0PV6rgJb4pBnr9aGIQkqyU0dhZngjewVVoSqiRJSryfPS2nsrrYfdKsFimYShPq5XUyV1KgEF0zISrIKVTlG04lxdv7ytkUOyuu/s400/Quotient+and+remainder1.png&quot; title=&quot;Find the quotient and remainder in C-Programming output&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfAVIktZd0t2arlNuEgop-jl6vXJhA2dtJKk4YuF7OrmvLbPa-R4150sr2gzjWw6Xl5YXcGN8FKI_U8ftKKh85AICn2U1oSGZX8UpUt15H8V6Rs5x_O9v4l-233CXuvAntRdjdzKsJKmlm/s1600/Quotient+and+remainder12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find the quotient and remainder in C-Programming output&quot; border=&quot;0&quot; data-original-height=&quot;328&quot; data-original-width=&quot;738&quot; height=&quot;177&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfAVIktZd0t2arlNuEgop-jl6vXJhA2dtJKk4YuF7OrmvLbPa-R4150sr2gzjWw6Xl5YXcGN8FKI_U8ftKKh85AICn2U1oSGZX8UpUt15H8V6Rs5x_O9v4l-233CXuvAntRdjdzKsJKmlm/s400/Quotient+and+remainder12.png&quot; title=&quot;Find the quotient and remainder in C-Programmingoutput&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&amp;nbsp;&lt;/h3&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;/b&gt; We use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/b&gt; header &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;package&lt;/a&gt;.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt;&amp;nbsp; We introduce&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; 4&lt;/span&gt;&lt;/b&gt; integers variable &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;a,&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;b,q,r&lt;/span&gt;&lt;/b&gt; for dividend, divisor, quotient and remainder respectively.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;3.&amp;nbsp;&lt;/b&gt;&lt;/span&gt; Here has a special case that is if we divide any number with &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;0 &lt;/b&gt;&lt;/span&gt;then it will be&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; undefined&lt;/span&gt;&lt;/b&gt;. So we&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;introduce a &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;if case&lt;/span&gt;&lt;/b&gt; there.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;/&lt;/span&gt;&lt;/b&gt; is used for the quotient and &lt;span style=&quot;color: red;&quot;&gt;%&lt;/span&gt; is used to evaluate residue. For more you can visit &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;syntax page&lt;/b&gt;&lt;/span&gt;.&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;5.&amp;nbsp;&lt;/b&gt;&lt;/span&gt; Then we print the value of &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;q&lt;/span&gt;&lt;/b&gt; and&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt; r&lt;/b&gt;&lt;/span&gt; respectively.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If you have any doubts comment below.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/4000364077190790275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-quotient-and-remainder-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/4000364077190790275'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/4000364077190790275'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-quotient-and-remainder-in-c.html' title='Find the quotient and remainder in C-Programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZ6ibY9-6Fxn2m5SQB4iBOxiDlXPY52qFkF5sFEZ4vZ-6nREzSe8Be3t_S8nSXX9U9Gkmdrjz1FKilV85ew9Ml51yKtjM8u0xbklGK6mQJTW-xUkQy7EC3hib8KdCjk2M05FJQH9RXeDo/s72-c/Quotient+and+remainder14.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-5081075455288407346</id><published>2019-02-16T09:44:00.001+05:30</published><updated>2019-02-16T09:47:29.619+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="factorial"/><category scheme="http://www.blogger.com/atom/ns#" term="while-loop"/><title type='text'>Find Factorial of a number by C-Programming(Using While-loop)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Find Factorial of a number by C-Programming(Using While-loop):&lt;/span&gt;&lt;/h2&gt;
So the &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;definition of factorial&lt;/b&gt;&lt;/span&gt;&amp;nbsp;is if we want to calculate the factorial value of any number n then we have to multiply all the natural number less than n with n i.e in easy way we have to calculate &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1*2*3*...*(n-1)*n&lt;/span&gt;&lt;/b&gt;. so we first give the programming code for this programming the explain how it works.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio6P3VwIEwEb9Kxip0LIxZtCG7EqRu6PVkssh4-Ks67VaqN1lEkLkLLVPNlkH2BIoNgu9Q-rOnDtGOwfFREREu_59nbvfHGHZ3Tz9cZaKiklYG82XQyGEzBRF8E_2gKmZCwleRCZaOrBrF/s1600/factorial+image.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Find Factorial of a number by C-Programming(Using While-loop)&quot; border=&quot;0&quot; data-original-height=&quot;337&quot; data-original-width=&quot;1004&quot; height=&quot;133&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio6P3VwIEwEb9Kxip0LIxZtCG7EqRu6PVkssh4-Ks67VaqN1lEkLkLLVPNlkH2BIoNgu9Q-rOnDtGOwfFREREu_59nbvfHGHZ3Tz9cZaKiklYG82XQyGEzBRF8E_2gKmZCwleRCZaOrBrF/s400/factorial+image.png&quot; title=&quot;Find Factorial of a number by C-Programming(Using While-loop)&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Factorial of a number&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;The most important things that you have to know to understand the program:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;. &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;the uses of int, printf, scanf.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;2&lt;/span&gt;.&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; while loop.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgns349RHecGFaxa3zdVcBIOQewS86VbjFFJoSO08A3DzNyl5P7m0G_2JWjLwJnsTNtXtncOFekrz7_jjbjCOaJDmxnLwFr68IO8hPuYCQykSywA_6eeCL33QOH3Lj3XdlKALrJoCoXrfQc/s1600/factorial.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find Factorial of a number by C-Programming(Using While-loop)&quot; border=&quot;0&quot; data-original-height=&quot;434&quot; data-original-width=&quot;777&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgns349RHecGFaxa3zdVcBIOQewS86VbjFFJoSO08A3DzNyl5P7m0G_2JWjLwJnsTNtXtncOFekrz7_jjbjCOaJDmxnLwFr68IO8hPuYCQykSywA_6eeCL33QOH3Lj3XdlKALrJoCoXrfQc/s320/factorial.png&quot; title=&quot;Find Factorial of a number by C-Programming(Using While-loop)&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int n,i,fact=1;&lt;br /&gt;
printf(&quot;Enter the number:&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
i=1;&lt;br /&gt;
while(i&amp;lt;=n)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fact=fact*i;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; printf(&quot;The factorial of %d is %d&quot;,n,fact);&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;The output is here below:&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP3oPo-q7QS8ZKBKxunULFkDybx6uS91kaib_alB3yJryc25BC3ZQBNDYPQ6mOUWvykI_SURWyyldD_nr8QLg5VXv3HOjUfxkTIp68d0cBeXq0NZMV9sQf6eIKqaWHqg1Qax3cF8YEaktG/s1600/factorial1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Find Factorial of a number by C-Programming(Using While-loop) output&quot; border=&quot;0&quot; data-original-height=&quot;166&quot; data-original-width=&quot;409&quot; height=&quot;129&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP3oPo-q7QS8ZKBKxunULFkDybx6uS91kaib_alB3yJryc25BC3ZQBNDYPQ6mOUWvykI_SURWyyldD_nr8QLg5VXv3HOjUfxkTIp68d0cBeXq0NZMV9sQf6eIKqaWHqg1Qax3cF8YEaktG/s320/factorial1.png&quot; title=&quot;Find Factorial of a number by C-Programming(Using While-loop) output&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Explanation:&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
1. First of all we introduce package &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;lt;stdio.h&amp;gt;&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
2. we introduce three integer variable. we use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;n&lt;/b&gt;&lt;/span&gt;&amp;nbsp;for taking value from users i.e. which number you like to have factorial. we use &lt;span style=&quot;color: red;&quot;&gt;i&lt;/span&gt;&amp;nbsp;for &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;while loop&lt;/b&gt;&lt;/span&gt;&amp;nbsp;and we use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;fact&lt;/b&gt;&lt;/span&gt;&amp;nbsp;to calculate the factorial and give the value as a output.&lt;br /&gt;
3. we initialize &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt;&amp;nbsp;and fact with the value &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;/b&gt;&amp;nbsp;to avoid the &lt;span style=&quot;color: red;&quot;&gt;garbage value&lt;/span&gt;. and here &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;i++&lt;/b&gt;&lt;/span&gt;&amp;nbsp;is stand for increase the value of &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt;&amp;nbsp;by &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;&lt;/b&gt;&amp;nbsp;after every step of &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;while loop&lt;/b&gt;&lt;/span&gt;.&lt;br /&gt;
4. we use &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;while loop&lt;/span&gt;&lt;/b&gt;&amp;nbsp;to solve the program you can also use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;if-else&lt;/b&gt;&lt;/span&gt;&amp;nbsp;or &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;for loop&lt;/b&gt;&lt;/span&gt;&amp;nbsp;to solve it.&lt;br /&gt;
5. Here is some limitation, 1st one is you can get correct value till &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;12!&lt;/span&gt;&lt;/b&gt;&amp;nbsp;after that it will give some &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;garbage value&lt;/b&gt;&lt;/span&gt;. so for increase the number you have to use &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;long&lt;/b&gt;&lt;/span&gt;&amp;nbsp;command before &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt;. After that you can get the correct value of &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;13!,14!&lt;/span&gt;&lt;/b&gt;&amp;nbsp;and so on. It has also have limit. For more information about &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;long&lt;/span&gt;&lt;/b&gt;&amp;nbsp;visit our &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax.html&quot; target=&quot;_blank&quot;&gt;syntax page&lt;/a&gt;&#39;&lt;/span&gt;&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/5081075455288407346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-factorial-of-number-by-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/5081075455288407346'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/5081075455288407346'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/find-factorial-of-number-by-c.html' title='Find Factorial of a number by C-Programming(Using While-loop)'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio6P3VwIEwEb9Kxip0LIxZtCG7EqRu6PVkssh4-Ks67VaqN1lEkLkLLVPNlkH2BIoNgu9Q-rOnDtGOwfFREREu_59nbvfHGHZ3Tz9cZaKiklYG82XQyGEzBRF8E_2gKmZCwleRCZaOrBrF/s72-c/factorial+image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-298815798104967504</id><published>2019-02-12T00:00:00.002+05:30</published><updated>2019-02-12T00:00:37.047+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="even"/><category scheme="http://www.blogger.com/atom/ns#" term="if-else"/><category scheme="http://www.blogger.com/atom/ns#" term="odd"/><title type='text'>C-programmed code to check even or odd number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: purple;&quot;&gt;
C-programmed&amp;nbsp;code to check even or odd number:&lt;/span&gt;&lt;/u&gt;&lt;/h2&gt;
We are going to check a number is &lt;span style=&quot;color: red;&quot;&gt;even or odd in C-programming&lt;/span&gt;. Here you can use any C-programming software to do it. At first we give the &lt;span style=&quot;color: red;&quot;&gt;code&lt;/span&gt;&amp;nbsp;of this programming and then we explain it smoothly. We always try to make easy for the &lt;span style=&quot;color: red;&quot;&gt;beginners&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghZH8dqoukOrgVobaFUKkytN1xs2ugVRTDMGB4Wr-EfQE_DMGEndSH3Rxr8RjA0Vzvr70X7YHbzwzpGPnYz_Fyt_V1ZvX7mKIfYHlXE0_kwv40hUmti5bf1l-8_eMb8HvQokL-6eCE2RC5/s1600/eVEN+OR+oDD+BANNER1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;240&quot; data-original-width=&quot;751&quot; height=&quot;102&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghZH8dqoukOrgVobaFUKkytN1xs2ugVRTDMGB4Wr-EfQE_DMGEndSH3Rxr8RjA0Vzvr70X7YHbzwzpGPnYz_Fyt_V1ZvX7mKIfYHlXE0_kwv40hUmti5bf1l-8_eMb8HvQokL-6eCE2RC5/s320/eVEN+OR+oDD+BANNER1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
The &lt;span style=&quot;color: red;&quot;&gt;code&lt;/span&gt; for check a number whether it is&lt;span style=&quot;color: red;&quot;&gt; even or odd&lt;/span&gt; at below:&lt;/h4&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&amp;nbsp;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&amp;nbsp;void main()&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;int a,b;&lt;br /&gt;&amp;nbsp;printf(&quot;Enter the number:&quot;);&lt;br /&gt;&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;a);&lt;br /&gt;&amp;nbsp;b=a%2;&lt;br /&gt;&amp;nbsp;if(b==0)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;printf(&quot;the number is even&quot;);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;printf(&quot;The number is odd&quot;);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;getch();&lt;br /&gt;&amp;nbsp;}&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Here the output of this program below:&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9BgEyA89kno9CK3hJrzk5Mqq9PZ8VueBWQ0TlNlTaMCAzsjiLhwobipb6aSFMPdoqbdevIkftbo7bn8Jm7Zxrfbvc59hYmMvpCqOre5TgaMGI3AVfSUuTKH4UGvjUSw8p8OGOrNCPiZz2/s1600/Even+or+odd1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;107&quot; data-original-width=&quot;397&quot; height=&quot;86&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9BgEyA89kno9CK3hJrzk5Mqq9PZ8VueBWQ0TlNlTaMCAzsjiLhwobipb6aSFMPdoqbdevIkftbo7bn8Jm7Zxrfbvc59hYmMvpCqOre5TgaMGI3AVfSUuTKH4UGvjUSw8p8OGOrNCPiZz2/s320/Even+or+odd1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglI9PPaAvLbeGsV0VYos9vWidxGhzK6UOq3Eb2QRGbb58Sckox6RrkE7AwaTUP0-XRQJAox9pjzA9kAZI0A2o13bnJ6CuDd8uSDR7AijESWWMgXmZb-V8RBLL9SMYV0JfS_i0PrSQqQu1l/s1600/ODD.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;94&quot; data-original-width=&quot;347&quot; height=&quot;86&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglI9PPaAvLbeGsV0VYos9vWidxGhzK6UOq3Eb2QRGbb58Sckox6RrkE7AwaTUP0-XRQJAox9pjzA9kAZI0A2o13bnJ6CuDd8uSDR7AijESWWMgXmZb-V8RBLL9SMYV0JfS_i0PrSQqQu1l/s320/ODD.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
EXPLANATION&lt;/h3&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;First of all we used two packages &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;conio.h&amp;gt;&lt;/span&gt;. to know the uses of &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;conio.h&amp;gt;&lt;/span&gt; visit our &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;packages page.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;we used &quot;&lt;span style=&quot;color: red;&quot;&gt;void main()&lt;/span&gt;&quot; here you can use only &quot;main()&quot; if you use windows operator system or you can use &quot;int main()&quot; if you use &lt;span style=&quot;color: red;&quot;&gt;Linux opareting system&lt;/span&gt;.know more in &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax-page.html&quot; target=&quot;_blank&quot;&gt;important syntax&lt;/a&gt;&amp;nbsp;of our page.&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Here we used two integer variable &#39;a&#39; and &#39;b&#39;. we used &#39;a&#39; for store the output number. and &#39;b&#39; is used to evaluate the remainder of &#39;a&#39; dividing by 2.&lt;/li&gt;
&lt;li&gt;&amp;nbsp;After we used &lt;span style=&quot;color: red;&quot;&gt;&quot;if-else&quot;&lt;/span&gt; condition. That means if &#39;b&#39;=0 then the remainder is 0 so &#39;a&#39; is divisible by 2 and if &#39;b&#39; not equal to 0 then it will be odd number.&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Now we use &quot;&lt;span style=&quot;color: red;&quot;&gt;getch()&lt;/span&gt;&quot;. To know more go to &quot;&lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax-page.html&quot; target=&quot;_blank&quot;&gt;important syntax&lt;/a&gt;&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/298815798104967504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/c-programmed-code-to-check-even-or-odd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/298815798104967504'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/298815798104967504'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/c-programmed-code-to-check-even-or-odd.html' title='C-programmed code to check even or odd number'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghZH8dqoukOrgVobaFUKkytN1xs2ugVRTDMGB4Wr-EfQE_DMGEndSH3Rxr8RjA0Vzvr70X7YHbzwzpGPnYz_Fyt_V1ZvX7mKIfYHlXE0_kwv40hUmti5bf1l-8_eMb8HvQokL-6eCE2RC5/s72-c/eVEN+OR+oDD+BANNER1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-8976112734132801291</id><published>2019-02-11T18:50:00.001+05:30</published><updated>2019-02-11T22:02:29.773+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="float"/><category scheme="http://www.blogger.com/atom/ns#" term="Real numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="Sum"/><title type='text'>Sum of two Real numbers in C-programming: </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Sum of two Real numbers in C-programming:&lt;/b&gt;&amp;nbsp;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
We are going to do sum of two real numbers in &lt;span style=&quot;color: orange;&quot;&gt;C-programming&lt;/span&gt;. Here you can use any C-programming software to do it. At first we give the &lt;span style=&quot;color: orange;&quot;&gt;code&lt;/span&gt; of this programming and then we explain it smoothly. We always try to make easy for the beginners.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8xC-XA8_o-UOjlpPL6NSVT34mCa9Pas6GshYVksoD2cQfFe1qKA7V5NqgK4yyfP7iGsEmp46CFFGpMLhJWS6Kz08Irgs8mAzaIMeueVD9c0t8h4_Cxx9i7MMT5MiFEfNBJbzyhhksT3yC/s1600/sUM+OF+TWO+NUMBERS2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;262&quot; data-original-width=&quot;762&quot; height=&quot;110&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8xC-XA8_o-UOjlpPL6NSVT34mCa9Pas6GshYVksoD2cQfFe1qKA7V5NqgK4yyfP7iGsEmp46CFFGpMLhJWS6Kz08Irgs8mAzaIMeueVD9c0t8h4_Cxx9i7MMT5MiFEfNBJbzyhhksT3yC/s320/sUM+OF+TWO+NUMBERS2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The code of this &lt;span style=&quot;color: orange;&quot;&gt;programme&lt;/span&gt; is below:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
float a,b,add;&lt;br /&gt;
printf(&quot;Enter two numbers:\n&quot;);&lt;br /&gt;
scanf(&quot;%f%f&quot;,&amp;amp;a,&amp;amp;b);&lt;br /&gt;
add=a+b;&lt;br /&gt;
printf(&quot;the sum of %f and %f is %f&quot;,a,b,add);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/blockquote&gt;
If you run the above program then you get this output below:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi62qsidUnOmiWYxSsjp2Kgz0Of_7hH1gkGnFpM09xMi1jVVnbcm4jc3cKXZCGhzsGa2DkswT9oHSOomUVUB5yMtjXtm863Z11jSECny2JKasn8ldIdDIlePU7St6bifZoxBv1e7E1-WQNy/s1600/sUM+OF+TWO+NUMBERSOUTPUT.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;205&quot; data-original-width=&quot;574&quot; height=&quot;114&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi62qsidUnOmiWYxSsjp2Kgz0Of_7hH1gkGnFpM09xMi1jVVnbcm4jc3cKXZCGhzsGa2DkswT9oHSOomUVUB5yMtjXtm863Z11jSECny2JKasn8ldIdDIlePU7St6bifZoxBv1e7E1-WQNy/s320/sUM+OF+TWO+NUMBERSOUTPUT.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
EXPLANATION:&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
1. First of all we used two packages &lt;span style=&quot;color: orange;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt; and &lt;span style=&quot;color: orange;&quot;&gt;&amp;lt;conio.h&amp;gt;.&lt;/span&gt; to know the uses of &lt;span style=&quot;color: orange;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt; and &lt;span style=&quot;color: orange;&quot;&gt;&amp;lt;conio.h&amp;gt;&lt;/span&gt; visit our &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/package-page.html&quot; target=&quot;_blank&quot;&gt;packages page&lt;/a&gt;.&lt;/div&gt;
2. we used &quot;&lt;span style=&quot;color: orange;&quot;&gt;void main()&lt;/span&gt;&quot; here you can use only &quot;&lt;span style=&quot;color: orange;&quot;&gt;main()&lt;/span&gt;&quot; if you use &lt;a href=&quot;https://en.wikipedia.org/wiki/Microsoft_Windows&quot; target=&quot;_blank&quot;&gt;windows operating system&lt;/a&gt; or you can use &quot;&lt;span style=&quot;color: orange;&quot;&gt;int main()&lt;/span&gt;&quot; if you use &lt;a href=&quot;https://www.linux.com/what-is-linux&quot; target=&quot;_blank&quot;&gt;Linux operating system&lt;/a&gt;.&lt;br /&gt;
know more in &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax-page.html&quot; target=&quot;_blank&quot;&gt;important syntax&lt;/a&gt;&amp;nbsp;of our page.&lt;br /&gt;
3. we used three &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax-page.html&quot; target=&quot;_blank&quot;&gt;float&lt;/a&gt; variable a,b,add.&lt;br /&gt;
4. Now we use &quot;a&quot; and &quot;b&quot; for store the two given numbers and use &quot;add&quot; variable to give the addition value of &quot;a&quot; and &quot;b&quot;.&lt;br /&gt;
5. Now we print the value of &quot;add&quot; variable and we get the output.&lt;br /&gt;
6. Now we use &quot;&lt;span style=&quot;color: orange;&quot;&gt;getch()&lt;/span&gt;&quot;. To know more go to &lt;a href=&quot;https://c-programming-dip.blogspot.com/p/syntax-page.html&quot; target=&quot;_blank&quot;&gt;important syntax&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/8976112734132801291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-two-real-numbers-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/8976112734132801291'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/8976112734132801291'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-two-real-numbers-in-c.html' title='Sum of two Real numbers in C-programming: '/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8xC-XA8_o-UOjlpPL6NSVT34mCa9Pas6GshYVksoD2cQfFe1qKA7V5NqgK4yyfP7iGsEmp46CFFGpMLhJWS6Kz08Irgs8mAzaIMeueVD9c0t8h4_Cxx9i7MMT5MiFEfNBJbzyhhksT3yC/s72-c/sUM+OF+TWO+NUMBERS2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1905601010453579024.post-50282795105442478</id><published>2019-02-09T11:42:00.000+05:30</published><updated>2019-02-16T22:46:34.964+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C-programming"/><category scheme="http://www.blogger.com/atom/ns#" term="programming language"/><category scheme="http://www.blogger.com/atom/ns#" term="Sum"/><category scheme="http://www.blogger.com/atom/ns#" term="sum of two numbers"/><title type='text'>Sum of two number in C programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: x-large;&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;Sum of two number(integers) in C:&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;We use&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;C-programming&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; to add &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;two numbers&lt;/span&gt; (integers). &lt;span style=&quot;font-weight: normal;&quot;&gt;We use &lt;a href=&quot;https://en.wikipedia.org/wiki/Borland_C%2B%2B&quot;&gt;Borland C++&lt;/a&gt; to compile the programming code.&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img alt=&quot;Sum of two number&quot; border=&quot;0&quot; data-original-height=&quot;368&quot; data-original-width=&quot;662&quot; height=&quot;177&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuEbZqI3nzuL1v74ti3cUHZpzrx1RAY9O3bb6Aecr31fiYLlWevo971cwSQMgB4t5S6XrR_cvK2JevTzg6Q6MI2uej78RxHWfmhEFWBE678trgy58HkOItNtHVve9AQW7YJj6msiSNU1_d/s320/program-to-add-two-numbers-in-c.png&quot; title=&quot;C-programming&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;At first we write the code and then we discuss how it will work then we will upload the picture of outcome results of this programming.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;The code is --&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;clear: both;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: left;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int a,b,add;&lt;br /&gt;
printf(&quot;Enter the two number:\n&quot;);&lt;br /&gt;
scanf(&quot;%d%d&quot;,&amp;amp;a,&amp;amp;b);&lt;br /&gt;
add=a+b;&lt;br /&gt;
printf(&quot;the sum of of %d and %d is %d&quot;,a,b,add);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: small;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;clear: both;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; here we use a package &lt;span style=&quot;color: red;&quot;&gt;stdio.h&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-weight: normal;&quot;&gt;to run the C- program here i use three integers variable &lt;span style=&quot;color: red;&quot;&gt;&#39;a&#39;&lt;/span&gt;&amp;nbsp;,&lt;span style=&quot;color: red;&quot;&gt;&#39;b&#39;&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;&#39;add&#39;&lt;/span&gt; . At first we use &lt;span style=&quot;color: red;&quot;&gt;&#39;a&#39;&lt;/span&gt; and &lt;span style=&quot;color: red;&quot;&gt;&#39;b&#39;&lt;/span&gt; to store two given number(integer) and after saving this two numbers we add this and save the number in variable &lt;span style=&quot;color: red;&quot;&gt;&#39;add&#39;&lt;/span&gt; and after saving the value of add we printed it. We use &lt;span style=&quot;color: red;&quot;&gt;getch()&lt;/span&gt; command to stable the output window. If you use &lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://www.linux.org/&quot;&gt;Linux operating&lt;/a&gt;&lt;/span&gt; system then you have not use the command &lt;span style=&quot;color: red;&quot;&gt;getch().&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: normal;&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; The output result of this C-programming is in below the video:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dxBHWWF87ib0x_DRFKjZM-zTnrkzFeCADV34hFfkgAZzcNHCDUtsqiKkalR6UvlJ_yVgijpxwWEWWBT2BNbHA&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://c-programming-dip.blogspot.com/feeds/50282795105442478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-two-number-in-c-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/50282795105442478'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1905601010453579024/posts/default/50282795105442478'/><link rel='alternate' type='text/html' href='https://c-programming-dip.blogspot.com/2019/02/sum-of-two-number-in-c-programming.html' title='Sum of two number in C programming'/><author><name>Dibyendu Mondal</name><uri>http://www.blogger.com/profile/16360708322970922883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvvWPnKQT_cNyPlj0a9epzSsXJtBNexKvEuw-lLYeYobhRXbhfVm1S8RQDRV-KRSKpWrXvQrFlLPBXPzvc4RGkEvuTh-mvTbTzkH8cf80MmJ5Nzp2L2g9o3IzI_ll_CBgfLXyhB9-DUwBhULM0t-zPN1s1ZeaR4G7XzXKGiQSvlnD6w/s1600/IMG_20241022_092013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuEbZqI3nzuL1v74ti3cUHZpzrx1RAY9O3bb6Aecr31fiYLlWevo971cwSQMgB4t5S6XrR_cvK2JevTzg6Q6MI2uej78RxHWfmhEFWBE678trgy58HkOItNtHVve9AQW7YJj6msiSNU1_d/s72-c/program-to-add-two-numbers-in-c.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>