<?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-3865091294770706512</id><updated>2024-10-25T06:12:27.782+05:30</updated><category term="C Tutorial"/><category term="Exercise Solving"/><category term="Team Feedback"/><title type='text'>Programmers Gallery</title><subtitle type='html'>Awake the genius within...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ishani Ghosh</name><uri>http://www.blogger.com/profile/07823622311372176304</uri><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>50</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-4432582096076702511</id><published>2012-07-05T00:09:00.000+05:30</published><updated>2012-07-05T00:26:14.175+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>The else if statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Previously we have learnt about nested if else statement, the else if statement works some what like the &lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/nested-if-else-statement.html&quot;&gt;nested if else statement&lt;/a&gt;. But it avoids the complication of the nested if else statement. In case of nested conditional operator, the programmer may indulge in the complication of the program. But a good programmer should always look forward to write a program a very easy and short way as possible. Thus else if statement is one such way to make a program simpler and easier for a developer to develop a program.&lt;br&gt;
Let us understand, the utility of else if statement with an example.&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/07/else-if-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/4432582096076702511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/07/else-if-statement.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4432582096076702511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4432582096076702511'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/07/else-if-statement.html' title='The else if statement'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-8668778734663690229</id><published>2012-01-26T23:55:00.000+05:30</published><updated>2012-03-07T08:28:13.152+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program with Logical Operator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 16&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;h3&gt;




The marks of five subjects of a particular student is inputted through the keyboard by the user. The division, which the student received will be prompted by the system as per following rules:&lt;/h3&gt;
&lt;h3&gt;




Percentage greater than or equal to 60 – First Division&lt;/h3&gt;
&lt;h3&gt;




Percentage less than 60 and greater than equal to 50 – Second Division&lt;/h3&gt;
&lt;h3&gt;




Percentage less than 50 and greater than equal to 40 – Third Division&lt;/h3&gt;
&lt;h3&gt;




Percentage less than 40 – Fail&lt;/h3&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;/* Program to find the Division of Marks obtained */&lt;/span&gt;&lt;/strong&gt;&lt;br&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/program-with-logical-operator.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/8668778734663690229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-logical-operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/8668778734663690229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/8668778734663690229'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-logical-operator.html' title='Program with Logical Operator'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-4608458354146300257</id><published>2012-01-25T22:49:00.001+05:30</published><updated>2012-01-25T23:47:19.671+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>Logical Operators</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
In C language, there are 3 types of logical operators which are used.&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&amp;amp;&amp;amp; – Used for AND operation.  &lt;/li&gt;
&lt;li&gt;|| – Used for OR operation.  &lt;/li&gt;
&lt;li&gt;! – Used for NOT operation.&lt;/li&gt;
&lt;/ol&gt;
When we want to apply two conditions to occur simultaneously in any condition based structure, we need to use AND operator. In  C language, AND operator is represented by &amp;amp;&amp;amp; sign.&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/logical-operators.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/4608458354146300257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/logical-operators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4608458354146300257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4608458354146300257'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/logical-operators.html' title='Logical Operators'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-4182827441310541340</id><published>2012-01-15T01:02:00.001+05:30</published><updated>2012-01-15T01:05:58.224+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program with Nested if-else statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 15&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;h3&gt;

Program to create report card of a student. The user need to enter the marks of English, Science, Maths, Social Studies of an examination out of 100. The program will find the average marks, if the marks is below 35, the system will prompt “Sorry, the student has failed”. If the marks is more than 20 and less than 35, the system will prompt “The student needs little improvement” and if the marks is below 20, then the system will prompt “The student needs to work hard”. If the marks is more than and equal to 35, the system will prompt “The student has passed”. If the marks is greater than or equal to 35 and less than 60 then the system will prompt “Well Done” and if the marks is greater than or equal to 60, then the system will prompt “Excellent”.&lt;/h3&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;span style=&quot;color: #9bbb59;&quot;&gt;/* Program to create Report Card of a student */&lt;/span&gt;&lt;/strong&gt;&lt;br&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/program-with-nested-if-else-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/4182827441310541340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-nested-if-else-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4182827441310541340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4182827441310541340'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-nested-if-else-statement.html' title='Program with Nested if-else statement'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-3845308923731383409</id><published>2012-01-06T00:00:00.000+05:30</published><updated>2012-01-14T22:25:38.371+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>Nested if-else statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The word nested itself signifies one within another. Nested &lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/if-else-statement.html&quot;&gt;if-else statement&lt;/a&gt; also signifies the same, an entire if-else structure can be written the body of the if statement or the else statement or within both individually.&lt;br&gt;
&lt;br&gt;
Syntax of nested if-else statement is as follows:&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/nested-if-else-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/3845308923731383409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/nested-if-else-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/3845308923731383409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/3845308923731383409'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/nested-if-else-statement.html' title='Nested if-else statement'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-1524870047665689779</id><published>2012-01-05T00:00:00.000+05:30</published><updated>2012-01-04T23:42:11.310+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program with if-else Statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 14&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;h3&gt;
&lt;i&gt;

Write a program to find the gross salary of individual employee. The conditions to find the gross salary are as follows:&lt;/i&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;i&gt;

If the basic salary is less than $1500, then HRA is 10% of basic and DA is 90% of basic.&lt;/i&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;i&gt;

And if the basic salary is more than or equal to $1500, then HRA is $500 and DA is 98% of basic.&lt;/i&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;i&gt;

The basic salary is inputted through the keyboard by the user.&lt;/i&gt;&lt;/h3&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;em&gt;&lt;span style=&quot;color: green;&quot;&gt;/* Program to find out the gross salary */&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/program-with-if-else-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/1524870047665689779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-if-else-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1524870047665689779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1524870047665689779'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-if-else-statement.html' title='Program with if-else Statement'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-6705573183882179004</id><published>2012-01-04T17:44:00.000+05:30</published><updated>2012-01-04T17:44:04.833+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>if-else Statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Till now we have learnt, the statement(s) is/are executed when the condition with in if statement is true, but we can also execute statement(s) when the condition is false. To execute the statement(s), when the condition becomes false, we need to use &lt;i&gt;&lt;b&gt;else statement&lt;/b&gt;&lt;/i&gt; along with &lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/if-statement.html&quot;&gt;if statement&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Syntax for if-else statement:&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/if-else-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/6705573183882179004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/if-else-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/6705573183882179004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/6705573183882179004'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/if-else-statement.html' title='if-else Statement'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-6379585751505400532</id><published>2012-01-02T00:00:00.000+05:30</published><updated>2012-01-02T12:48:58.462+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program with multiple statements within if</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;u&gt;Exercise 13&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;Program to find out the bonus amount of the employees. If the service duration of a particular employee is more than or equal to 3 years then the bonus amount is $2500.00 else the bonus amount is $1000.00.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;i&gt;&lt;b&gt;/* Program to calculate the bonus amount of the employee */&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/program-with-multiple-statements-within.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/6379585751505400532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-multiple-statements-within.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/6379585751505400532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/6379585751505400532'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/program-with-multiple-statements-within.html' title='Program with multiple statements within if'/><author><name>Debjyoti Das</name><uri>http://www.blogger.com/profile/01559548365005242625</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-1747111561226473564</id><published>2012-01-01T09:49:00.000+05:30</published><updated>2012-01-01T09:49:00.241+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>Multiple statements within if</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;div&gt;
In some cases, we need to execute multiple instructions or statements on satisfying any condition. In such a condition, we need to place the statements within a pair of braces within &lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/if-statement.html&quot;&gt;if statement&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br&gt;
Syntax:&lt;/div&gt;
&lt;div&gt;
If (Condition)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Statement 1;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Statement 2;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2012/01/multiple-statements-within-if.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/1747111561226473564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/multiple-statements-within-if.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1747111561226473564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1747111561226473564'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2012/01/multiple-statements-within-if.html' title='Multiple statements within if'/><author><name>Ishani Ghosh</name><uri>http://www.blogger.com/profile/07823622311372176304</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-6650466126162140015</id><published>2009-04-30T23:39:00.001+05:30</published><updated>2011-12-27T20:45:37.335+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program with if statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;u&gt;Exercise 12&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;A person purchase certain product from a shop, the shop offers a discount of 10%, if the customer purchases the product of more than $25. If the quantities and price per items are input through the keyboard, write a program to calculate the total expenses.&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;br&gt;
&lt;b&gt;&lt;u&gt;&lt;br&gt;&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;/* &lt;span style=&quot;color: olive;&quot;&gt;&lt;b&gt;Program to calculate the total expense&lt;/b&gt;&lt;/span&gt; */&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-with-if-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/6650466126162140015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-with-if-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/6650466126162140015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/6650466126162140015'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-with-if-statement.html' title='Program with if 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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-5544765348989973290</id><published>2009-04-27T17:56:00.000+05:30</published><updated>2011-12-27T20:48:50.170+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>The if statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The if statement is very common in most of the computer languages. Alike C also reserve this keyword to implement the decision control instruction.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The syntax of this instruction is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;if( The condition = True )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;  execute the statements;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/if-statement.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/5544765348989973290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/if-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5544765348989973290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5544765348989973290'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/if-statement.html' title='The if statement'/><author><name>Ishani Ghosh</name><uri>http://www.blogger.com/profile/07823622311372176304</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-4798652263095015120</id><published>2009-04-26T22:38:00.002+05:30</published><updated>2011-12-01T18:13:06.773+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>Decision Control Structure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In the previous blogs we have learnt about the different basic requirement to write a C program, now as we move forward we will learn about the different techniques of to write a C program. In this blog we will learn about the decision control structure of C program. Here we will learn about what is decision control structures and decision control algorithms.&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/decision-control-structure.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/4798652263095015120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/decision-control-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4798652263095015120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4798652263095015120'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/decision-control-structure.html' title='Decision Control Structure'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-1955388229410560560</id><published>2009-04-19T00:05:00.000+05:30</published><updated>2011-12-01T18:24:54.962+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program to interchange the last and first digit of a four digit number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;&lt;strong&gt;Exercise 11&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
&lt;h1&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;i&gt;A four digit number is entered through the keyboard and the first and the last digit of the number is interchanged, and the new number so formed will be displayed to the user.&lt;/i&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;u&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt; &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-to-interchange-last-and-first.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/1955388229410560560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-interchange-last-and-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1955388229410560560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1955388229410560560'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-interchange-last-and-first.html' title='Program to interchange the last and first digit of a four digit 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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-3943482679473879548</id><published>2009-04-18T00:05:00.000+05:30</published><updated>2011-12-01T18:20:37.133+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program to find the sum of last and first digit of a four digit number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 10&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;h1&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;i&gt;
If a four digit number is input through a keyboard, write a program to obtain the sum of the first and last digit of this number.&lt;/i&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-to-find-sum-of-last-and-first.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/3943482679473879548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-find-sum-of-last-and-first.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/3943482679473879548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/3943482679473879548'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-find-sum-of-last-and-first.html' title='Program to find the sum of last and first digit of a four digit 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><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-182700892183943938</id><published>2009-04-17T00:05:00.000+05:30</published><updated>2011-12-01T18:18:48.129+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program to reverse the number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 9&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;b&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;If a five digit number is input through the keyboard, write a program to reverse the number&lt;/span&gt;.&lt;/i&gt;&lt;/b&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;/* Program to reverse the number of a five digit number */&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
    #include&amp;lt;math.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-to-reverse-number.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/182700892183943938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-reverse-number.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/182700892183943938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/182700892183943938'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-reverse-number.html' title='Program to reverse the 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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-4902759631983541406</id><published>2009-04-16T00:05:00.001+05:30</published><updated>2011-12-01T18:18:38.548+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program to sum of the digits of a five digit number.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;&lt;strong&gt;Exercise 8&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits.&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;(Hint: Use the modulus operator ‘%’)&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;u&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;/* Program to sum of the digits of a five digit number */&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-to-sum-of-digits-of-five-digit.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/4902759631983541406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-sum-of-digits-of-five-digit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4902759631983541406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4902759631983541406'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-sum-of-digits-of-five-digit.html' title='Program to sum of the digits of a five digit 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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-5723262259844322180</id><published>2009-04-15T00:05:00.001+05:30</published><updated>2011-12-01T18:19:03.317+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program to interchange or swap the content of two variables (without the use of third variable)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 7&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Two numbers are inputted through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.(Without the help of 3rd variable)&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-to-interchange-or-swap-content_15.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/5723262259844322180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-interchange-or-swap-content_15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5723262259844322180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5723262259844322180'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-interchange-or-swap-content_15.html' title='Program to interchange or swap the content of two variables (without the use of third variable)'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-3077522956933279230</id><published>2009-04-14T00:05:00.000+05:30</published><updated>2011-12-01T18:19:20.937+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Program to interchange or swap the content of two variables (with the use of third variable)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 6&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Two numbers are inputted through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.(With the help of 3rd variable)&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;    #include&amp;lt;conio.h&amp;gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/program-to-interchange-or-swap-content.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/3077522956933279230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-interchange-or-swap-content.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/3077522956933279230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/3077522956933279230'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/program-to-interchange-or-swap-content.html' title='Program to interchange or swap the content of two variables (with the use of third variable)'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-5493779569777087689</id><published>2009-04-13T00:05:00.000+05:30</published><updated>2011-12-01T18:25:45.710+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Exercise Solving 5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 5:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;The length and breadth of a rectangle and radius of a circle are input through the keyboard. Write a C program to calculate the area &amp;amp; perimeter of the rectangle, and the area &amp;amp; circumference of the circle.&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;blockquote&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/exercise-solving-5.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/5493779569777087689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5493779569777087689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5493779569777087689'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-5.html' title='Exercise Solving 5'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-4799286122835839920</id><published>2009-04-12T00:05:00.000+05:30</published><updated>2011-12-01T18:31:38.601+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Exercise Solving 4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 4:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;b&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;Temperature of a city in Fahrenheit degree is input through the keyboard. Write a program to convert this temperature into centigrade degree.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;blockquote&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/exercise-solving-4.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/4799286122835839920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4799286122835839920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/4799286122835839920'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-4.html' title='Exercise Solving 4'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-8827184686466925072</id><published>2009-04-11T00:05:00.000+05:30</published><updated>2011-12-01T18:28:30.270+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Exercise Solving 3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 3:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;If the marks obtained by a student in five different subjects are input through the keyboard, find out the aggregate marks and the percentage marks obtained by the student. Assume that the maximum marks obtained by a student in each subject is 100.&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;blockquote&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/exercise-solving-3.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/8827184686466925072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/8827184686466925072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/8827184686466925072'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-3.html' title='Exercise Solving 3'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-5487406099606529594</id><published>2009-04-10T00:05:00.000+05:30</published><updated>2011-12-01T18:29:32.140+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Exercise Solving 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 2:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;The distance between two cities (in Km) is input through the keyboard. Write a program to convert and print the distance in meters, feet, inches and centimeter.&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;blockquote&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/exercise-solving-2.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/5487406099606529594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5487406099606529594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5487406099606529594'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-2.html' title='Exercise Solving 2'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-488114108780670475</id><published>2009-04-09T00:05:00.000+05:30</published><updated>2011-12-01T18:29:58.611+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exercise Solving"/><title type='text'>Exercise Solving 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;Exercise 1:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a C program to calculate his gross salary.&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;&lt;br&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;   &lt;/span&gt;&lt;br&gt;
&lt;blockquote&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span id=&quot;fullpost&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/exercise-solving-1.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/488114108780670475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-1.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/488114108780670475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/488114108780670475'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/exercise-solving-1.html' title='Exercise Solving 1'/><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><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-1333344861227205595</id><published>2009-04-08T00:05:00.000+05:30</published><updated>2011-12-01T18:32:15.860+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>Control Instruction in C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Control instruction in a programming language determines the flow of control in a program. In C language there are four types of control instruction, which are as follows:&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;Sequence Control Instruction. &lt;/li&gt;
&lt;li&gt;Selection or Decision Control Instruction. &lt;/li&gt;
&lt;li&gt;Repetition or Loop Control Instruction. &lt;/li&gt;
&lt;li&gt;Case Control Instruction.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/control-instruction-in-c.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/1333344861227205595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/control-instruction-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1333344861227205595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/1333344861227205595'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/control-instruction-in-c.html' title='Control Instruction in 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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3865091294770706512.post-5045929439443224625</id><published>2009-04-07T00:05:00.000+05:30</published><updated>2011-12-01T18:32:34.883+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Tutorial"/><title type='text'>A simple program to understand printf() and scanf() function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Now we will see how printf() and scanf() function works together to perform a particular work.&lt;br&gt;
We will write a program to calculate the Simple Interest. where the principle, rate of interest and the time in years will be taken from the user.&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;/div&gt;&lt;a href=&quot;http://programmersgallery.blogspot.com/2009/04/simple-program-to-understand-printf-and.html#more&quot;&gt;Read more »&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;For more details, please visit http://programmersgallery.blogspot.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmersgallery.blogspot.com/feeds/5045929439443224625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/simple-program-to-understand-printf-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5045929439443224625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3865091294770706512/posts/default/5045929439443224625'/><link rel='alternate' type='text/html' href='http://programmersgallery.blogspot.com/2009/04/simple-program-to-understand-printf-and.html' title='A simple program to understand printf() and scanf() 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><thr:total>0</thr:total></entry></feed>