<?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-8120023774653757812</id><updated>2026-09-07T10:20:22.160+05:30</updated><category term="a"/><category term="PROGRAM"/><category term="LET US C"/><title type='text'>computer science</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://computerscience220.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-5880902520264034086</id><published>2026-08-29T17:24:20.417+05:30</published><updated>2026-08-29T17:24:20.417+05:30</updated><title type='text'>Program to find square of a number.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find square of a number.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter any number to find its square: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b = a * a;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Square of %d is %d&quot;, a, b);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/5880902520264034086'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/5880902520264034086'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2026/08/program-to-find-square-of-number.html' title='Program to find square of a number.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-4892150394549302179</id><published>2020-08-09T16:02:00.010+05:30</published><updated>2026-08-29T17:25:02.502+05:30</updated><title type='text'>What is Character set</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;What is Character set&lt;/h1&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/AVvXsEh9aSYF-CwUYNpS8saPZ51Aw4MvuzmsT3tMyE2QDefo1Gp9pnl6Le7g4Ff7ZeLgOlcH1nzg5YbiR7_J7alL1i9lK6bxmjznp6sRRVeZt_diGHPj7OmNTBt3yOMUedEDu3n-R8imdhDy31w/s1280/Slide_1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9aSYF-CwUYNpS8saPZ51Aw4MvuzmsT3tMyE2QDefo1Gp9pnl6Le7g4Ff7ZeLgOlcH1nzg5YbiR7_J7alL1i9lK6bxmjznp6sRRVeZt_diGHPj7OmNTBt3yOMUedEDu3n-R8imdhDy31w/s640/Slide_1.png&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;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A Character denotes any alphabets, digits and special symbols used to represent information&amp;nbsp;&lt;/div&gt;&lt;div&gt;for Example
  &lt;table border=&quot;4&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; style=&quot;width: autopx;&quot;&gt;
&lt;tbody&gt;&lt;tr&gt;

&lt;td&gt;alphabets&lt;/td&gt;
&lt;td&gt;A,B...Y,Z Or a,b...y,z&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Digits&lt;/td&gt;
   &lt;td&gt; 0,1,2,3,4,5,6,7,8,9&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Special symbols&lt;/td&gt;
&lt;td&gt;`~ !@#$%^&amp;amp;*()_+-=}{|&quot;:&amp;lt;&amp;gt;?/.,;&#39;\][&lt;/td&gt;

&lt;/tr&gt;

&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;o:p&gt;&amp;nbsp;Constants, variables and keywords&lt;/o:p&gt;&lt;/h1&gt;&lt;div&gt;&lt;o:p&gt;The alphabets, digits and special symbols when properly combined from constants, variable and keywords. A constants is an entity that doesn&#39;t change, whereas, a variable is an entity that may change. A keyword is a word that carries special meaning.&lt;/o:p&gt;&lt;/div&gt;&lt;div&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div&gt;&lt;o:p&gt;In any C program, we typically do lots of calculations. The result of these calculation are store in memory of computer, Like human memory, the memory of computer also consists of millions of cell. The calculated value are store in the brain. That way computer are calculation store in memory ( as hard disk etc). Since the value stored in each locations may change.&lt;/o:p&gt;&lt;/div&gt;&lt;div&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div&gt;&lt;o:p&gt;In programming language, constants are often called literals, whereas variable are called identifiers.&lt;/o:p&gt;&lt;/div&gt;&lt;div&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div&gt;&lt;o:p&gt;we understand the constants and variable,&amp;nbsp;&lt;/o:p&gt;let us see.&lt;/div&gt;&lt;br /&gt; What different types of constants and variables in C&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Types of constants in C&lt;/h2&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/AVvXsEg5lobmT_qrGbeuhOGlf7qHEoYfeRH4ePMv3ToSEvGesNSskKR3Xmr67F0YEEt6BTTzXVQmJ_io9X440tjx04Du26cNa8vbNwVSwDnct5xtmrnwNvID6sUqQ5ARDKnY0NwuDsHmvKj0j-E/s1280/t+odf+c.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5lobmT_qrGbeuhOGlf7qHEoYfeRH4ePMv3ToSEvGesNSskKR3Xmr67F0YEEt6BTTzXVQmJ_io9X440tjx04Du26cNa8vbNwVSwDnct5xtmrnwNvID6sUqQ5ARDKnY0NwuDsHmvKj0j-E/s640/t+odf+c.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;constants in C can be divided into two major categories:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;) Primary constants&lt;/li&gt;&lt;li&gt;) Secondary constants&lt;/li&gt;&lt;/ol&gt;&lt;/h3&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;b&gt;&lt;table border=&quot;4&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; style=&quot;width: autopx;&quot;&gt;
&lt;tbody&gt;&lt;tr&gt;

&lt;td&gt;&lt;span style=&quot;font-size: 18.72px; font-weight: 700;&quot;&gt;Primary constants&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: 18.72px; font-weight: 700;&quot;&gt;Secondary constants&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Integer constants&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Real constants&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Character constants&lt;/div&gt;&lt;/td&gt;
   &lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Array&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Pointer&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Structure&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Union&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Enum etc.&lt;/div&gt;&lt;/td&gt;

&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
  Rules for constructing integer constants&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;a). An integer constants must have at least one digits.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;b). It must not have a decimal point.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;c). It can be any of zero, positive or negative.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;d). If no sign precedes an integer constants, it is assumed to be positive .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;e). no commas or blanks are allowed within an integer constant.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;f). The allowable range for integer constants is -2147483648 to +2147483648.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Truly speaking, the range of an integer constant depends upon the compiler. for compilers such as
Visual Studio, GCC, it is -2147483648 to +2147483647, Whereas for compilers such as turbo c or turbo
c++, the range is -32768 to +32767.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;b&gt;Rules for Constructing Real Constants&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;Real constants are often called foating point constants. Real constants could be written in two forms fractional form and exponential form.
following rules must be observed while constructing real constants expressed in fractional form :&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;a) A real constant must have at least one digit.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;b) It must have a decimal point.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;c) It could be either positive or negative.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;d) Default sign is positive.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;e) No commas or blanks are allowed within a real constant.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;for example:-&lt;/div&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;div&gt;+345.45&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;div&gt;90.09&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;div&gt;-67.78&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;div&gt;-767.89685&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://computerscience220.blogspot.com/feeds/4892150394549302179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/8120023774653757812/4892150394549302179?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4892150394549302179'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4892150394549302179'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/08/what-is-character-set-character-denotes.html' title='What is Character set'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9aSYF-CwUYNpS8saPZ51Aw4MvuzmsT3tMyE2QDefo1Gp9pnl6Le7g4Ff7ZeLgOlcH1nzg5YbiR7_J7alL1i9lK6bxmjznp6sRRVeZt_diGHPj7OmNTBt3yOMUedEDu3n-R8imdhDy31w/s72-c/Slide_1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-4095172307887903302</id><published>2020-08-07T22:35:00.005+05:30</published><updated>2020-08-07T22:54:02.548+05:30</updated><title type='text'>What is C</title><content type='html'>&lt;h1 style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Learn Programming C&amp;nbsp;&lt;/h1&gt;&lt;h3 style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Now See First Topic-&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLbmV6H49bZzWMH0GZnzbh2SlOWr0qOdQgTIvW0AF2XM_kCJfiqRGF5n-xg8jdMsToRSrmApHbSw3qMkX0RriqebmpnTDUPQnTDK_LpfpvEZyP7U9mGXiaFZzJ2Qu9Tp6SBJjLZRiq8EE/s1280/Slide_1.png&quot; imageanchor=&quot;1&quot; style=&quot;display: block; padding: 1em 0px;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLbmV6H49bZzWMH0GZnzbh2SlOWr0qOdQgTIvW0AF2XM_kCJfiqRGF5n-xg8jdMsToRSrmApHbSw3qMkX0RriqebmpnTDUPQnTDK_LpfpvEZyP7U9mGXiaFZzJ2Qu9Tp6SBJjLZRiq8EE/s640/Slide_1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Getting Started&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;What is C?&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;C is a programming language developed AT Bell &lt;span style=&quot;font-family: arial;&quot;&gt;laboratories &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of USA in 1972. It was designed and written by Dennis Ritchie. C become popular because it is reliable, simple and technologies emerge and&amp;nbsp;really good.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;An opinion that is that is often heard today is &quot; C has been already superseded by language like C, C# or Java. There are several reasons for this. There are as follows:-&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;C++, C# or Java make use of a principle called object oriented programming (OOP) to organize the program,You would still need a good hold over the language elements of C and the basic programming skills. So it make more sense to first learn C and then migrate to C++, C#, Java . Though this two-step learning process may take more time, but at the end of it, you will definitely find it worth the trouble.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Major part of popular operating systems like Window, Linux, UNIX, etc. and android are written in C. moreover, if one is to extend the operating systems to work with new devices, one needs to write device driver programs are written exclusively in C.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Getting Started with C&lt;/h3&gt;&lt;div&gt;There is a close analogy between learning English language and learning c language. While leaning English, we first learn alphabet and digits, then learn to combine them to from words and numbers, which, in turn, are combined to from sentences and sentences are combined to from paragraphs.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;While learning C, We first learn alphabets, digits and special symbols. Then we learn how to combine them to from constants, variables, and keywords, and finally, how to combine them to from an instructions. A group of instructions can then be combined to program.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;step in learning English language:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;table align=&quot;left&quot; border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; margin-left: 6.75pt; margin-right: 6.75pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-anchor-horizontal: column; mso-table-anchor-vertical: paragraph; mso-table-left: left; mso-table-lspace: 9.0pt; mso-table-overlap: never; mso-table-rspace: 9.0pt; mso-table-top: .05pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;&lt;tr style=&quot;height: 21.45pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border: 1pt solid black; height: 21.45pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; padding: 0in 5.4pt; width: 61.85pt;&quot; valign=&quot;top&quot; width=&quot;82&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: .05pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
   id=&quot;_x0000_t32&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;32&quot; o:oned=&quot;t&quot; path=&quot;m,l21600,21600e&quot;
   filled=&quot;f&quot;&gt;
   &lt;v:path arrowok=&quot;t&quot; fillok=&quot;f&quot; o:connecttype=&quot;none&quot;/&gt;
   &lt;o:lock v:ext=&quot;edit&quot; shapetype=&quot;t&quot;/&gt;
  &lt;/v:shapetype&gt;&lt;v:shape id=&quot;_x0000_s1026&quot; type=&quot;#_x0000_t32&quot; style=&#39;position:absolute;
   margin-left:56.75pt;margin-top:7.8pt;width:29.1pt;height:0;z-index:251658240&#39;
   o:connectortype=&quot;straight&quot;&gt;
   &lt;v:stroke endarrow=&quot;block&quot;/&gt;
  &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=&quot;height: 12px; margin-left: 75px; margin-top: 4px; mso-ignore: vglayout; position: absolute; width: 41px; z-index: 251658240;&quot;&gt;&lt;img height=&quot;12&quot; src=&quot;file:///C:\Users\NADEEM~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.gif&quot; v:shapes=&quot;_x0000_s1026&quot; width=&quot;41&quot; /&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Alphabets &lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border: none; height: 21.45pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 29.05pt;&quot; valign=&quot;top&quot; width=&quot;39&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: .05pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;&lt;o:p&gt;&amp;nbsp;➖&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border: 1pt solid; height: 21.45pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; padding: 0in 5.4pt; width: 59.65pt;&quot; valign=&quot;top&quot; width=&quot;80&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: .05pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
   id=&quot;_x0000_s1027&quot; type=&quot;#_x0000_t32&quot; style=&#39;position:absolute;margin-left:54pt;
   margin-top:7.85pt;width:18.95pt;height:.05pt;z-index:251659264;
   mso-position-horizontal-relative:text;mso-position-vertical-relative:text&#39;
   o:connectortype=&quot;straight&quot;&gt;
   &lt;v:stroke endarrow=&quot;block&quot;/&gt;
  &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=&quot;height: 12px; margin-left: 71px; margin-top: 5px; mso-ignore: vglayout; position: absolute; width: 28px; z-index: 251659264;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;!--[endif]--&gt;words &lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;table align=&quot;left&quot; border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; margin-left: 6.75pt; margin-right: 6.75pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-anchor-horizontal: page; mso-table-anchor-vertical: paragraph; mso-table-left: 240.35pt; mso-table-lspace: 9.0pt; mso-table-overlap: never; mso-table-rspace: 9.0pt; mso-table-top: 2.1pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;&lt;tr style=&quot;height: 21.45pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border: 1pt solid black; height: 21.45pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; padding: 0in 5.4pt; width: 61.85pt;&quot; valign=&quot;top&quot; width=&quot;82&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-element-anchor-horizontal: page; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 240.4pt; mso-element-top: 2.1pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
   id=&quot;_x0000_s1028&quot; type=&quot;#_x0000_t32&quot; style=&#39;position:absolute;margin-left:56.75pt;
   margin-top:7.8pt;width:29.1pt;height:0;z-index:251658240;
   mso-position-horizontal-relative:text;mso-position-vertical-relative:text&#39;
   o:connectortype=&quot;straight&quot;&gt;
   &lt;v:stroke endarrow=&quot;block&quot;/&gt;
  &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;span style=&quot;height: 12px; margin-left: 75px; margin-top: 4px; mso-ignore: vglayout; position: absolute; width: 41px; z-index: 251659264;&quot;&gt;&lt;img height=&quot;12&quot; src=&quot;file:///C:\Users\NADEEM~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.gif&quot; v:shapes=&quot;_x0000_s1028&quot; width=&quot;41&quot; /&gt;&lt;/span&gt;&lt;!--[endif]--&gt;sentences &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border: none; height: 21.45pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 29.05pt;&quot; valign=&quot;top&quot; width=&quot;39&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-element-anchor-horizontal: page; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 240.4pt; mso-element-top: 2.1pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border: 1pt solid; height: 21.45pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; padding: 0in 5.4pt; width: 61.1pt;&quot; valign=&quot;top&quot; width=&quot;81&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; mso-element-anchor-horizontal: page; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 240.4pt; mso-element-top: 2.1pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;paragraphs&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;step in learning C language:&lt;/span&gt;&lt;/p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;&lt;tr style=&quot;height: 31.65pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border: 1pt solid black; height: 31.65pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; padding: 0in 5.4pt; width: 81.15pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Alphabets&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Digits&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Special symbols&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border: 1pt solid black; height: 31.65pt; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt; width: 64.7pt;&quot; valign=&quot;top&quot; width=&quot;86&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Constants&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Keywords&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border: 1pt solid black; height: 31.65pt; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt; width: 76.4pt;&quot; valign=&quot;top&quot; width=&quot;102&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Instructions&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border: 1pt solid black; height: 31.65pt; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt; width: 76.4pt;&quot; valign=&quot;top&quot; width=&quot;102&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;Program&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://computerscience220.blogspot.com/feeds/4095172307887903302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/8120023774653757812/4095172307887903302?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4095172307887903302'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4095172307887903302'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/08/what-is-c.html' title='What is C'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLbmV6H49bZzWMH0GZnzbh2SlOWr0qOdQgTIvW0AF2XM_kCJfiqRGF5n-xg8jdMsToRSrmApHbSw3qMkX0RriqebmpnTDUPQnTDK_LpfpvEZyP7U9mGXiaFZzJ2Qu9Tp6SBJjLZRiq8EE/s72-c/Slide_1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-7804238067894652989</id><published>2020-04-29T04:10:00.002+05:30</published><updated>2020-07-02T09:00:30.475+05:30</updated><title type='text'>Program to find the length of the string entered by user</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;font size=&quot;5&quot;&gt;
Program to find the length of the string entered by user&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;&lt;font color=&quot;#b51200&quot; style=&quot;line-height: 1.5;&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int i= 0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;char ch, str[20];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the string: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;gets(str);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ch=str[0];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;while (ch!=&#39;0&#39;)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;i++;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;ch= str[i];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Length is %d&quot;, i);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/font&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/7804238067894652989'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/7804238067894652989'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post_80.html' title='Program to find the length of the string entered by user'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-5026900914885279478</id><published>2020-04-29T04:08:00.007+05:30</published><updated>2020-07-02T09:02:57.230+05:30</updated><title type='text'>Program to insert a user-defined element at specific location</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;font size=&quot;5&quot;&gt;
Program to insert a user-defined element at specific location&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;&lt;font color=&quot;#b51200&quot; style=&quot;line-height: 1.5;&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int A[10], i, num, pos, n;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the number of elements: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;n);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the data: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=0; i&amp;lt;n; i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;A[i]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the new element value and it&#39;s position: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d%d&quot;, &amp;amp;num, &amp;amp;pos);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=n; i&amp;gt;pos; i- -)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;A[i+1]=A[i];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A[pos]=num;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;New array is: \n&quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (i=0;i&amp;lt;n+1;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d\t&quot;, A[i]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/font&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/5026900914885279478'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/5026900914885279478'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post_19.html' title='Program to insert a user-defined element at specific location'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-405801651739237943</id><published>2020-04-29T04:08:00.006+05:30</published><updated>2020-07-02T09:02:03.620+05:30</updated><title type='text'>Program to arrange the elements of an array using Bubble Sort</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;font size=&quot;5&quot;&gt;
Program to arrange the elements of an array using Bubble Sort&lt;/font&gt;&lt;br /&gt;
&lt;font color=&quot;#b51200&quot; style=&quot;line-height: 1.5;&quot;&gt;&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int A[10], i, j, n, temp;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the number of elements: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;n);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the data: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=0; i&amp;lt;n; i++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;A[i]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=0; i&amp;lt;n; i++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for ( j=0; j&amp;lt;n-i; j++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if ( A[j] &amp;gt; A[j+1])&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;temp = A[j];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;A[j] = A[j+1];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;A[j+1]=temp;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Sorted Array is &quot;); &lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; //Sorted in Ascending Order&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=0; i&amp;lt;n; i++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d\t&quot;, A[i]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/font&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/405801651739237943'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/405801651739237943'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post_22.html' title='Program to arrange the elements of an array using Bubble Sort'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-9180859965897127954</id><published>2020-04-29T04:07:00.002+05:30</published><updated>2020-07-02T09:04:15.236+05:30</updated><title type='text'>Program to declare a user defined array and print the sum of odd and even numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.5; text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;font size=&quot;5&quot;&gt;
Program to declare a user defined array and print the sum of odd and even numbers.&lt;/font&gt;&lt;br /&gt;
&lt;font color=&quot;#b51200&quot;&gt;&lt;br /&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;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;int a[10], i, sume=0, sumo= 0, n;&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the size of an array: &quot;);&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;n);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;if (n&amp;lt;=10)&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;Enter the array data: &quot;);&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;for (i=0;i&amp;lt;n;i++)&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;   &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a[i]);&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;for (i=0;i&amp;lt;n;i++)&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;   &lt;/span&gt;if (a[i]%2==0)&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;   &lt;/span&gt;sume = sume + a[i];&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;   &lt;/span&gt;else&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;   &lt;/span&gt;sumo = sumo + a[i];&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;Sum of odd number = %d and sum of even number = %d&quot;, sumo, sume);&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;\nSize is too large.&quot;);&lt;br /&gt;
&lt;span style=&quot;line-height: 1.5; white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/font&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/9180859965897127954'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/9180859965897127954'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-declare-user-defined-array.html' title='Program to declare a user defined array and print the sum of odd and even numbers'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-2309974942907766721</id><published>2020-04-29T04:06:00.000+05:30</published><updated>2026-08-29T17:21:20.723+05:30</updated><title type='text'>Program to print the sum of each row and each column of a matrix separately</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to print the sum of each row and each column of a matrix separately&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
# define SIZE 3&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int A[SIZE][SIZE];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int row, col, sum = 0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;/* Input elements in matrix from user */&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter elements in matrix of size %dx%d: \n&quot;, SIZE, SIZE);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (row=0; row&amp;lt;SIZE; row++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (col=0; col&amp;lt;SIZE; col++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;A[row][col]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/* Calculate sum of elements of each row of matrix */&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (row=0; row&amp;lt;SIZE; row++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;sum = 0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (col=0; col&amp;lt;SIZE; col++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;sum += A[row][col];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;Sum of elements of Row %d = %d\n&quot;, row+1, sum);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/* Find sum of elements of each columns of matrix */&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (row=0; row&amp;lt;SIZE; row++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;sum = 0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (col=0; col&amp;lt;SIZE; col++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;sum += A[col][row];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;Sum of elements of Column %d = %d\n&quot;, row+1, sum);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/2309974942907766721'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/2309974942907766721'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post_26.html' title='Program to print the sum of each row and each column of a matrix separately'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-6669512969118513467</id><published>2020-04-29T04:05:00.001+05:30</published><updated>2026-08-29T17:21:30.413+05:30</updated><title type='text'>Program to input two matrices and store their product in another third array</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to input two matrices and store their product in another third array&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int i, j, k, a[3][3], b[3][3], c[3][3];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the elements of 1st array .\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (i=1;i&amp;lt;=3;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (j=1;j&amp;lt;=3;j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a[i][j]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Elements of 1st array are: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (i=1;i&amp;lt;=3;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (j=1;j&amp;lt;=3;j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf (&quot;%d\t&quot;, a[i][j]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the elements of 2nd array .\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (i=1;i&amp;lt;=3;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (j=1;j&amp;lt;=3;j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;b[i][j]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Elements of 2nd array are: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (i=1;i&amp;lt;=3;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (j=1;j&amp;lt;=3;j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf (&quot;%d\t&quot;, b[i][j]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The product of both the matrices are: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (i=1;i&amp;lt;=3;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (j=1;j&amp;lt;=3;j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;c[i][j]=0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for (k=1; k&amp;lt;=3;k++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;c[i][j] += a[i][k] * b[k][j];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(i=1;i&amp;gt;=3;i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(j=1;j&amp;lt;=3;j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot;%d\t&quot;, c[i][j]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/6669512969118513467'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/6669512969118513467'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-input-two-matrices-and-store.html' title='Program to input two matrices and store their product in another third array'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-4450813844254174454</id><published>2020-04-29T04:03:00.003+05:30</published><updated>2026-08-29T17:21:39.275+05:30</updated><title type='text'>Program to find the largest and smallest element of a 1D array</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find the largest and smallest element of a 1D array&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int arr[10], i, max, min, a;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the number of the elements of an array: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter %d elements of the array: &quot;, a);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=0; i&amp;lt;a; i++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;arr[i]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;max = arr[0];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;min = arr[0];&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( i=1; i&amp;lt;a; i++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if ( arr[i]&amp;gt;max )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;max = arr[i];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if ( arr[i]&amp;lt;min )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;min = arr[i];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Largest element is %d\n&quot;, max);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Smallest element is %d&quot;, min);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4450813844254174454'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4450813844254174454'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post_49.html' title='Program to find the largest and smallest element of a 1D array'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-1617646242627668625</id><published>2020-04-29T04:02:00.002+05:30</published><updated>2026-08-29T17:22:30.088+05:30</updated><title type='text'>Program to access and print an array of 5 elements.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to access and print an array of 5 elements.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int num[5], a;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the elements: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( a=0;a&amp;lt;5;a++ )&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;num[a]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;The elements are: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (a=0;a&amp;lt;5;a++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d\t&quot;, numb[a]);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/1617646242627668625'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/1617646242627668625'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-access-and-print-array-of-5.html' title='Program to access and print an array of 5 elements.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-4586550230309731669</id><published>2020-04-28T23:12:00.003+05:30</published><updated>2026-08-29T17:22:38.841+05:30</updated><title type='text'>Program to return a value from user-defined function.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to return a value from user-defined function.&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
int sum ();&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b, c;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter two integer values to add: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d%d&quot;, &amp;amp;a, &amp;amp;b);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;c = sum (a, b);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The addition is: %d&quot;, c);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int sum (int x, int y)&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int add;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;add = x + y;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return add;&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4586550230309731669'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4586550230309731669'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-return-value-from-user_28.html' title='Program to return a value from user-defined function.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-5391380408880355045</id><published>2020-04-28T23:11:00.001+05:30</published><updated>2026-08-29T17:22:48.207+05:30</updated><title type='text'>Program to implement break statement.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to implement break statement.&lt;br /&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&amp;nbsp;#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;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
 int i; &lt;br /&gt;
 double number, sum = 0.0; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
 for (i=1; i &amp;lt;= 10; ++i) &lt;br /&gt;
 { &lt;br /&gt;
  printf (&quot;Enter a n%d: &quot;, i); &lt;br /&gt;
  scanf (&quot;%lf&quot;, &amp;amp;number); &lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
  &lt;i&gt;// If user enters negative number, loop is terminated&lt;/i&gt; &lt;br /&gt;
  if (number &amp;lt; 0.0) &lt;br /&gt;
  { &lt;br /&gt;
   break; &lt;br /&gt;
  } &lt;br /&gt;
  sum += number;     // sum = sum + number; &lt;br /&gt;
 } &lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
 printf (&quot;Sum = %.2lf&quot;, sum); &lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot;&gt;
 return 0; &lt;br /&gt;
}&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/5391380408880355045'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/5391380408880355045'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-implement-break-statement.html' title='Program to implement break statement.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-2130266968828280335</id><published>2020-04-28T23:09:00.002+05:30</published><updated>2026-08-29T17:22:56.065+05:30</updated><title type='text'>Program to find predecessor &amp; successor of a number.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find predecessor &amp;amp; successor of a number.&lt;br /&gt;
&lt;br /&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;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b, c;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter a number to find it&#39;s predecessor &amp;amp; successor: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (%d, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b = a + 1;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The successor of %d is: %d\n&quot;, a, b);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;c = a - 1;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The predecessor of %d is: %d\n&quot;, a, c);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/2130266968828280335'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/2130266968828280335'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-predecessor-successor.html' title='Program to find predecessor &amp; successor of a number.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-6843621770265439592</id><published>2020-04-28T23:08:00.002+05:30</published><updated>2026-08-29T17:23:31.223+05:30</updated><title type='text'>Program to print following pattern:-           *         **       ***     ****   *****</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to print following pattern:-&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;**&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp;***&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; ****&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;*****&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int i, j, rows=7;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;The pattern is below: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(i=1; i&amp;lt;=rows; i++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(j=i; j&amp;lt;rows; j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot; &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(j=1; j&amp;lt;=i; j++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot;*&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/6843621770265439592'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/6843621770265439592'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post_28.html' title='Program to print following pattern:-           *         **       ***     ****   *****'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-8111370259812021604</id><published>2020-04-28T23:07:00.000+05:30</published><updated>2026-08-29T17:23:40.474+05:30</updated><title type='text'>Program to print the following pattern:-              *     ***          *****        *******             *********                  ***********                       *************</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to print the following pattern:-&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;***&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; *****&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp; &amp;nbsp; *******&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *********&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ***********&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *************&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b, rows= 7, k=0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;The pattern is below: \n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( a=1; a&amp;lt;=rows; ++a, k=0)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (b=1; b&amp;lt;=rows-a; ++b)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot; &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;while (k != 2*a-1)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot;* &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;++k;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/8111370259812021604'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/8111370259812021604'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/blog-post.html' title='Program to print the following pattern:-              *     ***          *****        *******             *********                  ***********                       *************'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-3601952246325872584</id><published>2020-04-28T23:04:00.003+05:30</published><updated>2026-08-29T17:23:48.881+05:30</updated><title type='text'>Program to find area of circle.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find area of circle.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;float r, area, pi= 3.14;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter radius of the Circle: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%f&quot;, &amp;amp;r);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;area = pi * r * r;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Area of Circle: %f&quot;, area);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/3601952246325872584'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/3601952246325872584'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-area-of-circle.html' title='Program to find area of circle.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-6559690159409528063</id><published>2020-04-28T23:03:00.002+05:30</published><updated>2026-08-29T17:23:58.061+05:30</updated><title type='text'>Program to print Fibonacci Series up-to n numbers.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to print Fibonacci Series up-to n numbers.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b, x=0, y=1, z;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter the number of terms for Fibonacci Series: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;\nFibonacci Series is: &quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (b = 1; b &amp;lt;= a; ++b)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d\t&quot;, x);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;z = x + y;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;x = y;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;y = z;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/6559690159409528063'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/6559690159409528063'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-print-fibonacci-series-up-to.html' title='Program to print Fibonacci Series up-to n numbers.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-137826803666958640</id><published>2020-04-28T20:23:00.002+05:30</published><updated>2026-08-29T17:24:09.816+05:30</updated><title type='text'>Program to find cube of a number.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find cube of a number.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter any number to find its cube: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b = a * a * a;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Cube of %d is %d&quot;, a, b);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/137826803666958640'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/137826803666958640'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-cube-of-number.html' title='Program to find cube of a number.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-175904501768088216</id><published>2020-04-28T20:22:00.009+05:30</published><updated>2020-07-02T09:09:35.754+05:30</updated><title type='text'>Program to find square of a number.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;font size=&quot;5&quot;&gt;
Program to find square of a number.&lt;/font&gt;&lt;br /&gt;
&lt;font color=&quot;#ff00aa&quot;&gt;&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter any number to find its square: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b = a * a;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Square of %d is %d&quot;, a, b);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/font&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/175904501768088216'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/175904501768088216'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-square-of-number_28.html' title='Program to find square of a number.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-4260497289543298378</id><published>2020-04-28T20:22:00.008+05:30</published><updated>2020-07-02T09:07:59.563+05:30</updated><title type='text'>Program to find square of a number.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;font size=&quot;5&quot;&gt;
Program to find square of a number.&lt;/font&gt;&lt;br /&gt;
&lt;font color=&quot;#ff00bb&quot; style=&quot;line-height: 1.5;&quot;&gt;&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter any number to find its square: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b = a * a;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Square of %d is %d&quot;, a, b);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/font&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4260497289543298378'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/4260497289543298378'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-square-of-number.html' title='Program to find square of a number.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-8137970345622810618</id><published>2020-04-28T20:21:00.002+05:30</published><updated>2020-04-28T20:21:24.729+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to return a value from user-defined function.&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
int sum ();&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b, c;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter two integer values to add: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d%d&quot;, &amp;amp;a, &amp;amp;b);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;c = sum (a, b);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The addition is: %d&quot;, c);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int sum (int x, int y)&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int add;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;add = x + y;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return add;&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/8137970345622810618'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/8137970345622810618'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-return-value-from-user.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-2285883338361411509</id><published>2020-04-28T20:20:00.003+05:30</published><updated>2020-04-28T20:20:30.219+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find Fibonacci Series, Factorial or Multiplication Table of a number as per user&#39;s choice.&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
void fibonacci ();&lt;br /&gt;
void factorial ();&lt;br /&gt;
void multiplication ();&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int b, c;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter your choice: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;\n1. Find the Fibonacci Series upto the number.&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;\n2. Find the Factorial of a number.&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;\n3. Find the Multiplication Table of a number.&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;\n4. Exit\n&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;b);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;switch (b)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 1: fibonacci ();&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;break;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 2: factorial ();&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;break;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 3: multiplication ();&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;break;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 4: exit (0);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;break;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;default:&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;Enter the correct option.&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void fibonacci ()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, w, x= 0, y= 1, z;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter a positive integer: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The Fibonacci Series is: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for ( w=1; w&amp;lt;=a; ++w)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d\t&quot;, x);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;z = x + y;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;x = y;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;y = z;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void factorial ()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, n, num= 1;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter a positive integer: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (n=1; n&amp;lt;=a; n++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;num = num * n;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The Factorial is: %d&quot;, num);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void multiplication ()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, m;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter a positive integer: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;a);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;The multiplication table is: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (m=1; m&amp;lt;=10; m++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;\n%d * %d = %d&quot;, a, m, a*m);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/2285883338361411509'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/2285883338361411509'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-fibonacci-series.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-7654630136756497175</id><published>2020-04-28T20:18:00.003+05:30</published><updated>2020-04-28T20:18:53.813+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to print factors of a given number.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, num;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter a number to find it&#39;s Factors: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d&quot;, &amp;amp;num);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Factors of the %d are: \n&quot;, num);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (a = 1; a &amp;lt;= num; a++)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if (num%a == 0)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf (&quot;%d\t&quot;, a);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/7654630136756497175'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/7654630136756497175'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-print-factors-of-given-number.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8120023774653757812.post-138442898564660542</id><published>2020-04-28T20:17:00.004+05:30</published><updated>2020-04-28T20:17:52.138+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Program to find the greatest number between 3 numbers.&lt;br /&gt;
&lt;br /&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;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a, b, c;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;clrscr();&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf (&quot;Enter three numbers to find the greater: &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf (&quot;%d%d%d&quot;, &amp;amp;a, &amp;amp;b, &amp;amp;c);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if (a&amp;gt;b &amp;amp;&amp;amp; a&amp;gt;c)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d is the greatest number.&quot;, a);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else if (b&amp;gt;a &amp;amp;&amp;amp; b&amp;gt;c)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d is the greatest number.&quot;, b);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else if (c&amp;gt;a &amp;amp;&amp;amp; c&amp;gt;b)&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;%d is the greatest number.&quot;, c);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf (&quot;An unknown error occurred!&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/138442898564660542'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8120023774653757812/posts/default/138442898564660542'/><link rel='alternate' type='text/html' href='https://computerscience220.blogspot.com/2020/04/program-to-find-greatest-number-between.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>