<?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-4014098412648254012</id><updated>2024-09-08T21:33:10.386+05:30</updated><category term="JNTU ATH C lang"/><category term="JNTU ATH I year"/><category term="How to handle PC issues"/><title type='text'>Kodes and keys</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4014098412648254012.post-2580122672839030365</id><published>2012-11-25T12:44:00.002+05:30</published><updated>2012-11-25T12:46:17.697+05:30</updated><title type='text'>How to change the port number in wamp server in windows</title><content type='html'>&amp;nbsp; Hello Mates...&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Do you guys know how to change the port no of Wamp Server..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;First STOP all the services of wamp and exit from wamp if you are already using it..&lt;/li&gt;
&lt;li&gt;Follow the path&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +Wamp Root Folder&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+bin&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+apache&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +apache2.2.22(changes based on version of apache using)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+conf&lt;/div&gt;
&lt;div&gt;
Ex: &amp;nbsp;C:\wamp\bin\apache\apache2.2.22\conf&amp;nbsp;&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;ul&gt;
&lt;li&gt;In the conf folder select and open with notepad &quot;httpd.conf&quot; file&lt;/li&gt;
&lt;li&gt;After Entering in the notepad use&lt;span style=&quot;color: orange;&quot;&gt; ctrl+F &lt;/span&gt;and search the file for 80 or word &lt;span style=&quot;color: orange;&quot;&gt;&quot;Listen&quot;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzHhSOrKznCGZlzkSwRtWbsj1MDvSGX0_s-Had6sKS_Xq56XpEO0h_3szoBgeaqZwX3GIbw6pUxcochr-W35uPnXidjvMbMY9SxNFW3ZnZuinseqh0iCQWpH-ynf6kCV2xWw52IaF1QhI/s1600/conf.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzHhSOrKznCGZlzkSwRtWbsj1MDvSGX0_s-Had6sKS_Xq56XpEO0h_3szoBgeaqZwX3GIbw6pUxcochr-W35uPnXidjvMbMY9SxNFW3ZnZuinseqh0iCQWpH-ynf6kCV2xWw52IaF1QhI/s1600/conf.PNG&quot; height=&quot;225&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Change Listen value as shown&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn4zocFOHNzk8LMpseaFbmreELrnrPpo9TV9DDrCGAhTYRe-tFM7Fukd9m1KsvPUPPyx_XCh7u8Y8NR6PedFqeBY4rbo9qkXDqnwo6KvuZlyKNZ9SADrifMALWPEJPeA6apErvqH79fRM/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn4zocFOHNzk8LMpseaFbmreELrnrPpo9TV9DDrCGAhTYRe-tFM7Fukd9m1KsvPUPPyx_XCh7u8Y8NR6PedFqeBY4rbo9qkXDqnwo6KvuZlyKNZ9SADrifMALWPEJPeA6apErvqH79fRM/s1600/Capture.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Do not use the port no that belongs to os or some other software..&lt;/li&gt;
&lt;li&gt;Save the file and exit&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Start the &quot;wamp server&quot; and start the services&lt;/li&gt;
&lt;li&gt;You can see &amp;nbsp;your &quot;wamp&quot; running in your assigned port no..&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;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/AVvXsEiG8JpI8bfphRQCk0tjlWjORHLqqYhiEEWbWJuz_4eQQbrZIgBDlUMSjcX8ZkTcAhDf5eXK-AadXSzB6zknRkRkpDWUQQ4yWQSS6xEPK3dit9ngcw4LRaGR2rVp8LUT2f-igqYoAARghXY/s1600/fire.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8JpI8bfphRQCk0tjlWjORHLqqYhiEEWbWJuz_4eQQbrZIgBDlUMSjcX8ZkTcAhDf5eXK-AadXSzB6zknRkRkpDWUQQ4yWQSS6xEPK3dit9ngcw4LRaGR2rVp8LUT2f-igqYoAARghXY/s1600/fire.PNG&quot; height=&quot;281&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/2580122672839030365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/11/how-to-change-port-number-in-wamp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2580122672839030365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2580122672839030365'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/11/how-to-change-port-number-in-wamp.html' title='How to change the port number in wamp server in windows'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzHhSOrKznCGZlzkSwRtWbsj1MDvSGX0_s-Had6sKS_Xq56XpEO0h_3szoBgeaqZwX3GIbw6pUxcochr-W35uPnXidjvMbMY9SxNFW3ZnZuinseqh0iCQWpH-ynf6kCV2xWw52IaF1QhI/s72-c/conf.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4014098412648254012.post-7717179659387258359</id><published>2012-06-27T03:38:00.001+05:30</published><updated>2012-11-13T22:50:55.482+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to handle PC issues"/><title type='text'>problem:   All my exe files are opening in notepad or vlc player etc..</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;i&gt;&lt;u&gt;&lt;b&gt;All my .exe files are opening in notepad or firefox or vlc etc..&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
step1:- Create a new text document&lt;br /&gt;
step2:- Copy the code&amp;nbsp; given below to that document&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows Registry Editor Version 5.00&lt;br /&gt;
&lt;br /&gt;
;this code is for fixing the exe files in vista and windows 7&lt;br /&gt;
[-HKEY_CLASSES_ROOT\.exe]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.exe]&lt;br /&gt;
@=&quot;exefile&quot;&lt;br /&gt;
&quot;Content Type&quot;=&quot;application/x-msdownload&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.exe\PersistentHandler]&lt;br /&gt;
@=&quot;{098f2470-bae0-11cd-b579-08002b30bfeb}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile]&lt;br /&gt;
@=&quot;Application&quot;&lt;br /&gt;
&quot;EditFlags&quot;=hex:38,07,00,00&lt;br /&gt;
&quot;FriendlyTypeName&quot;=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\&lt;br /&gt;
&amp;nbsp; 00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,\&lt;br /&gt;
&amp;nbsp; 32,00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,\&lt;br /&gt;
&amp;nbsp; 00,2c,00,2d,00,31,00,30,00,31,00,35,00,36,00,00,00&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\DefaultIcon]&lt;br /&gt;
@=&quot;%1&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell\open]&lt;br /&gt;
&quot;EditFlags&quot;=hex:00,00,00,00&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell\open\command]&lt;br /&gt;
@=&quot;\&quot;%1\&quot; %*&quot;&lt;br /&gt;
&quot;IsolatedCommand&quot;=&quot;\&quot;%1\&quot; %*&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell\runas]&lt;br /&gt;
&quot;HasLUAShield&quot;=&quot;&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell\runas\command]&lt;br /&gt;
@=&quot;\&quot;%1\&quot; %*&quot;&lt;br /&gt;
&quot;IsolatedCommand&quot;=&quot;\&quot;%1\&quot; %*&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell\runasuser]&lt;br /&gt;
@=&quot;@shell32.dll,-50944&quot;&lt;br /&gt;
&quot;Extended&quot;=&quot;&quot;&lt;br /&gt;
&quot;SuppressionPolicyEx&quot;=&quot;{F211AA05-D4DF-4370-A2A0-9F19C09756A7}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shell\runasuser\command]&lt;br /&gt;
&quot;DelegateExecute&quot;=&quot;{ea72d00e-4960-42fa-ba92-7792a7944c1d}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shellex]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers]&lt;br /&gt;
@=&quot;Compatibility&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\Compatibility]&lt;br /&gt;
@=&quot;{1d27f844-3a1f-4410-85ac-14651078412d}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\exefile\shellex\DropHandler]&lt;br /&gt;
@=&quot;{86C86720-42A0-1069-A2E8-08002B30309D}&quot;&lt;br /&gt;
&lt;br /&gt;
[-HKEY_CLASSES_ROOT\SystemFileAssociations\.exe]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\SystemFileAssociations\.exe]&lt;br /&gt;
&quot;FullDetails&quot;=&quot;prop:System.PropGroup.Description;System.FileDescription;System.ItemTypeText;System.FileVersion;System.Software.ProductName;System.Software.ProductVersion;System.Copyright;*System.Category;*System.Comment;System.Size;System.DateModified;System.Language;*System.Trademarks;*System.OriginalFileName&quot;&lt;br /&gt;
&quot;InfoTip&quot;=&quot;prop:System.FileDescription;System.Company;System.FileVersion;System.DateCreated;System.Size&quot;&lt;br /&gt;
&quot;TileInfo&quot;=&quot;prop:System.FileDescription;System.Company;System.FileVersion;System.DateCreated;System.Size&quot;&lt;br /&gt;
&lt;br /&gt;
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithList]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithProgids]&lt;br /&gt;
&quot;exefile&quot;=hex(0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
step4:-click on file option and click on save as&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFKeqtfta8qAD5zNVIRH0zXRxj7xSD1aeJ06aJZmNeuZPGLUPcNIE9fwjQRDAZeR2qN9eI4QVIorqBbSlzUnAv_aNRgh0i5Sy7E4HuXO0zc-fMWvbQVCNItEJ07iTj8lncyN_Ldb9BYc/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;450&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFKeqtfta8qAD5zNVIRH0zXRxj7xSD1aeJ06aJZmNeuZPGLUPcNIE9fwjQRDAZeR2qN9eI4QVIorqBbSlzUnAv_aNRgh0i5Sy7E4HuXO0zc-fMWvbQVCNItEJ07iTj8lncyN_Ldb9BYc/s640/Capture.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;/div&gt;
step5:-&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;Save the file extension as &quot;.reg&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;type=&quot;All Files&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;encoding=&quot;Unicode&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and Then &lt;u&gt;&lt;b&gt;Save&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Don&#39;t have enough patience to do all this..?&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Not at all a problem&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Just download the register file from below link&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;a href=&quot;http://www.mediafire.com/download.php?b6epk9uo2xk42bd&quot;&gt;http://www.mediafire.com/download.php?b6epk9uo2xk42bd&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
step 6:-&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Now&amp;nbsp;right click on the file and select &quot;&lt;u&gt;&lt;b&gt;merge&quot;.&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then press &lt;b&gt;&quot;ok&quot;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
step 7: reboot the system..&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/7717179659387258359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/all-my.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/7717179659387258359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/7717179659387258359'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/all-my.html' title='problem:   All my exe files are opening in notepad or vlc player etc..'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFKeqtfta8qAD5zNVIRH0zXRxj7xSD1aeJ06aJZmNeuZPGLUPcNIE9fwjQRDAZeR2qN9eI4QVIorqBbSlzUnAv_aNRgh0i5Sy7E4HuXO0zc-fMWvbQVCNItEJ07iTj8lncyN_Ldb9BYc/s72-c/Capture.PNG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4014098412648254012.post-7558926708041806231</id><published>2012-06-27T03:23:00.001+05:30</published><updated>2012-11-13T22:54:27.561+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to handle PC issues"/><title type='text'>All my .lnk files are opening in notepad or firefox and bla bla bla..</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;i&gt;&lt;u&gt;&lt;b&gt;All my .lnk files are opening in notepad or firefox etc..&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
step1:- Create a new text document&lt;br /&gt;
step2:- Copy the code&amp;nbsp; given below to that document&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows Registry Editor Version 5.00&lt;br /&gt;
&lt;br /&gt;
;LNK file association fix for Windows Vista.&lt;br /&gt;
;Updated on April 24, 2007&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk]&lt;br /&gt;
@=&quot;lnkfile&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellEx]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellNew]&lt;br /&gt;
&quot;Handler&quot;=&quot;{ceefea1b-3e29-4ef1-b34c-fec79c4f70af}&quot;&lt;br /&gt;
&quot;IconPath&quot;=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\&lt;br /&gt;
&amp;nbsp; 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\&lt;br /&gt;
&amp;nbsp; 00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,\&lt;br /&gt;
&amp;nbsp; 31,00,36,00,37,00,36,00,39,00,00,00&lt;br /&gt;
&quot;ItemName&quot;=&quot;@shell32.dll,-30397&quot;&lt;br /&gt;
&quot;MenuText&quot;=&quot;@shell32.dll,-30318&quot;&lt;br /&gt;
&quot;NullFile&quot;=&quot;&quot;&lt;br /&gt;
&quot;Command&quot;=-&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\.lnk\ShellNew\Config]&lt;br /&gt;
&quot;DontRename&quot;=&quot;&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile]&lt;br /&gt;
@=&quot;Shortcut&quot;&lt;br /&gt;
&quot;EditFlags&quot;=dword:00000001&lt;br /&gt;
&quot;FriendlyTypeName&quot;=&quot;@shell32.dll,-4153&quot;&lt;br /&gt;
&quot;NeverShowExt&quot;=&quot;&quot;&lt;br /&gt;
&quot;IsShortcut&quot;=&quot;&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\CLSID]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\shellex]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolderMenu]&lt;br /&gt;
@=&quot;{37ea3a21-7493-4208-a011-7f9ea79ce9f5}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]&lt;br /&gt;
@=&quot;&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]&lt;br /&gt;
@=&quot;{00021401-0000-0000-C000-000000000046}&quot;&lt;br /&gt;
&lt;br /&gt;
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\UserChoice]&lt;br /&gt;
&lt;br /&gt;
step4:-click on file option and click on save as&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKgx9wmMs3zg3dDFEJC5Q4td_NDfCCyY3W2JpaDwOGcSCkG_hMYC_nNSdkP7H1dXmvvj_jORfecvukJcQWKXCnxvL6L6lquX7aWYInHBLgg2pz7IVRK73yspRr9Y7S2es1nzmZcWlFe1Y/s1600/Capture.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;449&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKgx9wmMs3zg3dDFEJC5Q4td_NDfCCyY3W2JpaDwOGcSCkG_hMYC_nNSdkP7H1dXmvvj_jORfecvukJcQWKXCnxvL6L6lquX7aWYInHBLgg2pz7IVRK73yspRr9Y7S2es1nzmZcWlFe1Y/s640/Capture.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
step5:-&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;Save the file extension as &quot;.reg&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;type=&quot;All Files&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;encoding=&quot;Unicode&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and Then &lt;u&gt;&lt;b&gt;Save&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;If you don&#39;t have enough patience to do all this&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;You can download the register file from below link&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/download.php?0k5iafvlp930j0f&quot;&gt;http://www.mediafire.com/download.php?0k5iafvlp930j0f&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
step 6:-&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Now,Right click on the register file and select &lt;u&gt;&lt;b&gt;merge.&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then press &lt;b&gt;ok&lt;/b&gt;&lt;br /&gt;
step 7: reboot the system..&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/7558926708041806231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/all-my-lnk-files-are-opening-in-notepad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/7558926708041806231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/7558926708041806231'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/all-my-lnk-files-are-opening-in-notepad.html' title='All my .lnk files are opening in notepad or firefox and bla bla bla..'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKgx9wmMs3zg3dDFEJC5Q4td_NDfCCyY3W2JpaDwOGcSCkG_hMYC_nNSdkP7H1dXmvvj_jORfecvukJcQWKXCnxvL6L6lquX7aWYInHBLgg2pz7IVRK73yspRr9Y7S2es1nzmZcWlFe1Y/s72-c/Capture.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4014098412648254012.post-1270702284194862054</id><published>2012-06-14T06:26:00.001+05:30</published><updated>2012-06-14T06:26:07.214+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span id=&quot;ContentPlaceHolder1_lblDescription&quot;&gt;&lt;span itemprop=&quot;articleBody&quot;&gt;/*&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;ContentPlaceHolder1_lblDescription&quot;&gt;&lt;span itemprop=&quot;articleBody&quot;&gt;Write a C program to display the contents of a file.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;ContentPlaceHolder1_lblDescription&quot;&gt;&lt;span itemprop=&quot;articleBody&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;ContentPlaceHolder1_lblDescription&quot;&gt;&lt;span itemprop=&quot;articleBody&quot;&gt;# include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt; FILE  *fp ;&lt;br /&gt; char  ch ;&lt;br /&gt; &lt;br /&gt; fp = fopen ( &quot;PR1.C&quot;, &quot;r&quot; ) ;&lt;br /&gt;&lt;br /&gt; while ( 1 )&lt;br /&gt; {&lt;br /&gt;  ch = fgetc ( fp ) ;&lt;br /&gt;&lt;br /&gt;  if ( ch == EOF )&lt;br /&gt;   break ;&lt;br /&gt;&lt;br /&gt;  printf ( &quot;%c&quot;, ch ) ;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; fclose ( fp ) ;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;            
            
                &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/1270702284194862054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-to-display-contents-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1270702284194862054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1270702284194862054'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-to-display-contents-of.html' title=''/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-5056132572573068942</id><published>2012-06-14T06:20:00.001+05:30</published><updated>2012-06-14T06:20:40.949+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>C program which reverses the first n charecters in a file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h4&gt;
/*&amp;nbsp;&lt;/h4&gt;
&lt;h4 style=&quot;font-weight: normal;&quot;&gt;
Write a C program to reverse the first n characters in a file.&lt;br /&gt;(Note: The file name and n are specified on the command line.)&lt;/h4&gt;
&lt;h4 style=&quot;font-weight: normal;&quot;&gt;
*/&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
#include &amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
#include &amp;lt;process.h&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
void main(int argc, char *argv[])&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
{&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; char a[15];&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; char s[20];&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; char n;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; int k;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; int j=0;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; int i;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; int len;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; FILE *fp;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; if(argc!=3)&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; puts(&quot;Improper number of arguments.&quot;);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; exit(0);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; fp = fopen(argv[1],&quot;r&quot;);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; if(fp == NULL)&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; puts(&quot;File cannot be opened.&quot;);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; exit(0);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; k=*argv[2]-48;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; n = fread(a,1,k,fp);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; a[n]=&#39;\0&#39;;&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; len=strlen(a);&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; for(i=len-1;i&amp;gt;=0;i--)&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
&amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
s[j]=a[i];&lt;/span&gt;&lt;br style=&quot;font-weight: normal;&quot; /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
printf(&quot;%c&quot;,s[j]);&lt;/span&gt;&lt;br /&gt;
j=j+1;&lt;br /&gt;
}&lt;br /&gt;
s[j+1]=&#39;\0&#39;;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/h4&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/5056132572573068942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/c-program-which-reverses-first-n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/5056132572573068942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/5056132572573068942'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/c-program-which-reverses-first-n.html' title='C program which reverses the first n charecters in a file'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-1644534219597519769</id><published>2012-06-14T06:16:00.002+05:30</published><updated>2012-06-14T06:16:33.452+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>12a C program which copies one file to another</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;/* Write a C program which copies one file to another.*/&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;process.h&amp;gt;&lt;br /&gt;

void main(int argc, char *argv[])&lt;br /&gt;
{&lt;br /&gt;
FILE *fs,*ft;&lt;br /&gt;
char ch;&lt;br /&gt;
clrscr();&lt;br /&gt;
if(argc!=3)&lt;br /&gt;
{&lt;br /&gt;
puts(“Invalid number of arguments.”);&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
fs = fopen(argv[1],”r”);&lt;br /&gt;
if(fs==NULL)&lt;br /&gt;
{&lt;br /&gt;
puts(“Source file cannot be opened.”);&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
ft = fopen(argv[2],”w”);&lt;br /&gt;
if (ft==NULL)&lt;br /&gt;
{&lt;br /&gt;
puts(“Target file cannot be opened.”);&lt;br /&gt;
fclose(fs);&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
while(1)&lt;br /&gt;
{&lt;br /&gt;
ch=fgetc(fs);&lt;br /&gt;
if (ch==EOF)&lt;br /&gt;
break;&lt;br /&gt;
else&lt;br /&gt;
fputc(ch,ft);&lt;br /&gt;
}&lt;br /&gt;
fclose(fs);&lt;br /&gt;
fclose(ft);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;





&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/1644534219597519769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/12a-c-program-which-copies-one-file-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1644534219597519769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1644534219597519769'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/12a-c-program-which-copies-one-file-to.html' title='12a C program which copies one file to another'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-3705119747951485276</id><published>2012-06-14T05:56:00.000+05:30</published><updated>2012-06-14T05:56:12.939+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>10b C program for Roman Numeral conversion</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*&amp;nbsp; Write a C program to convert a Roman numeral to its decimal equivalent.*/&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;string.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdlib.h&amp;gt;&lt;br /&gt;

void main()&lt;br /&gt;
{&lt;br /&gt;

int *a,len,i,j,k;&lt;br /&gt;
char *rom;&lt;br /&gt;

clrscr();&lt;br /&gt;

printf(“Enter the Roman Numeral:”);&lt;br /&gt;
scanf(“%s”,rom);&lt;br /&gt;

len=strlen(rom);&lt;br /&gt;

for(i=0;i&amp;lt;len;i++)&lt;br /&gt;
{&lt;br /&gt;
if(rom[i]==’I&#39;)&lt;br /&gt;
a[i]=1;&lt;br /&gt;
else if(rom[i]==’V&#39;)&lt;br /&gt;
a[i]=5;&lt;br /&gt;
else if(rom[i]==’X&#39;)&lt;br /&gt;
a[i]=10;&lt;br /&gt;
else if(rom[i]==’L&#39;)&lt;br /&gt;
a[i]=50;&lt;br /&gt;
else if(rom[i]==’C&#39;)&lt;br /&gt;
a[i]=100;&lt;br /&gt;
else if(rom[i]==’D&#39;)&lt;br /&gt;
a[i]=500;&lt;br /&gt;
else if(rom[i]==’M&#39;)&lt;br /&gt;
a[i]=1000;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
printf(“\nInvalid Value”);&lt;br /&gt;
getch();&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
k=a[len-1];&lt;br /&gt;
for(i=len-1;i&amp;gt;0;i–)&lt;br /&gt;
{&lt;br /&gt;
if(a[i]&amp;gt;a[i-1])&lt;br /&gt;
k=k-a[i-1];&lt;br /&gt;
else if(a[i]==a[i-1] || a[i]&amp;lt;a[i-1])&lt;br /&gt;
k=k+a[i-1];&lt;br /&gt;
}&lt;br /&gt;
printf(“\nIts Decimal Equivalent is:”);&lt;br /&gt;
printf(“%d”,k);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/3705119747951485276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/10b-c-program-for-roman-numeral.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3705119747951485276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3705119747951485276'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/10b-c-program-for-roman-numeral.html' title='10b C program for Roman Numeral conversion'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-2155759149408553652</id><published>2012-06-14T05:39:00.002+05:30</published><updated>2012-06-14T05:39:59.330+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>week 10a C program on 2&#39;s Compliment</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*&lt;br /&gt;
Write a C program to find the 2’s complement of a binary number&lt;br /&gt;
*/&lt;br /&gt;
&lt;div class=&quot;line number12 index11 alt1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot;&gt;
&lt;code class=&quot;c preprocessor&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot;&gt;
&lt;code class=&quot;c preprocessor&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot;&gt;
&lt;code class=&quot;c keyword bold&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;complement (&lt;/code&gt;&lt;code class=&quot;c color1 bold&quot;&gt;char&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;*a);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot;&gt;
&lt;code class=&quot;c keyword bold&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;main()&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c color1 bold&quot;&gt;char&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;a[16];&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number20 index19 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c color1 bold&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;i;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;clrscr();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number22 index21 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c functions bold&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&quot;Enter the binary number&quot;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number23 index22 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c functions bold&quot;&gt;gets&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(a);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number24 index23 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(i=0;a[i]!=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;\0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;; i++)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number26 index25 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;(a[i]!=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;&amp;amp;&amp;amp; a[i]!=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;1&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number27 index26 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number28 index27 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c functions bold&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&quot;The number entered is not a binary number. Enter the correct number&quot;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number29 index28 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c functions bold&quot;&gt;exit&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(0);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number30 index29 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number31 index30 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number32 index31 alt1&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;complement(a);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number33 index32 alt2&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;getch();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number34 index33 alt1&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number35 index34 alt2&quot;&gt;
&lt;code class=&quot;c keyword bold&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;complement (&lt;/code&gt;&lt;code class=&quot;c color1 bold&quot;&gt;char&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;*a)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number36 index35 alt1&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number37 index36 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c color1 bold&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;l, i, c=0;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number38 index37 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c color1 bold&quot;&gt;char&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;b[16];&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number39 index38 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;l=&lt;/code&gt;&lt;code class=&quot;c functions bold&quot;&gt;strlen&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(a);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number40 index39 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;for&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;(i=l-1; i&amp;gt;=0; i--)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number41 index40 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number42 index41 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;(a[i]==&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number43 index42 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;b[i]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;1&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number44 index43 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;else&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number45 index44 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;b[i]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number46 index45 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number47 index46 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;for&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(i=l-1; i&amp;gt;=0; i--)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number48 index47 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number49 index48 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(i==l-1)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number50 index49 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number51 index50 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;(b[i]==&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number52 index51 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;b[i]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;1&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number53 index52 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;else&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number54 index53 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number55 index54 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;b[i]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number56 index55 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;c=1;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number57 index56 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number58 index57 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number59 index58 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;else&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number60 index59 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number61 index60 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(c==1 &amp;amp;&amp;amp; b[i]==&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number62 index61 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number63 index62 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;b[i]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;1&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number64 index63 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;c=0;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number65 index64 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number66 index65 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c keyword bold&quot;&gt;else&lt;/code&gt; &lt;code class=&quot;c keyword bold&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;c plain&quot;&gt;(c==1 &amp;amp;&amp;amp; b[i]==&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;1&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number67 index66 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number68 index67 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;b[i]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number69 index68 alt2&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;c=1;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number70 index69 alt1&quot;&gt;
&lt;code class=&quot;c spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number71 index70 alt2&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number72 index71 alt1&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number73 index72 alt2&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;b[l]=&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&#39;\0&#39;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number74 index73 alt1&quot;&gt;
&lt;code class=&quot;c functions bold&quot;&gt;printf&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;c string&quot;&gt;&quot;The 2&#39;s complement is %s&quot;&lt;/code&gt;&lt;code class=&quot;c plain&quot;&gt;, b);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number75 index74 alt2&quot;&gt;
&lt;code class=&quot;c plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/2155759149408553652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/week-10a-c-program-on-2s-compliment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2155759149408553652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2155759149408553652'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/week-10a-c-program-on-2s-compliment.html' title='week 10a C program on 2&#39;s Compliment'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-455263536249556472</id><published>2012-06-13T21:58:00.001+05:30</published><updated>2012-06-13T21:58:28.800+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>8b C program for pyramid of numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/* Write a C program to construct a pyramid of 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;
int height, line, i;&lt;br /&gt;
clrscr();&lt;br /&gt;
scanf(&quot;%d&quot;, &amp;amp;height);&lt;br /&gt;
for (i = 0; i &amp;lt; height - 1; ++i)&lt;br /&gt;
printf(&quot; &quot;);&lt;br /&gt;
printf(&quot;1\n&quot;);&lt;br /&gt;
for (line = 1; line &amp;lt; height; ++line)&lt;br /&gt;
{&lt;br /&gt;
for (i = 0; i &amp;lt; height - line - 1; ++i)&lt;br /&gt;
printf(&quot; &quot;);&lt;br /&gt;
for (i = 0; i &amp;lt; line; ++i)&lt;br /&gt;
printf(&quot;%d&quot;, line + 1);&lt;br /&gt;
printf(&quot; &quot;);&lt;br /&gt;
for (i = 0; i &amp;lt; line; ++i)&lt;br /&gt;
printf(&quot;%d&quot;, line + 1);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/455263536249556472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/8b-c-program-for-pyramid-of-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/455263536249556472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/455263536249556472'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/8b-c-program-for-pyramid-of-numbers.html' title='8b C program for pyramid of numbers'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-1944960759418407677</id><published>2012-06-13T21:09:00.001+05:30</published><updated>2012-06-13T21:10:17.925+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>C program on pascals triangle</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*Write a c program to generate pascals triangle*/&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;
void main()&lt;br /&gt;
{&lt;br /&gt;
int bin,p,q,r,x;&lt;br /&gt;
clrscr();&lt;br /&gt;
bin=1;&lt;br /&gt;
q=0;&lt;br /&gt;
&lt;br /&gt;
printf(&quot;Rows you want to input:&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;r);&lt;br /&gt;
&lt;br /&gt;
printf(&quot;\nPascal&#39;s Triangle:\n&quot;);&lt;br /&gt;
&lt;br /&gt;
while(q&amp;lt;r)&lt;br /&gt;
{&lt;br /&gt;
for(p=40-3*q;p&amp;gt;0;--p)&lt;br /&gt;
printf(&quot; &quot;);&lt;br /&gt;
for(x=0;x&amp;lt;=q;++x)&lt;br /&gt;
{&lt;br /&gt;
if((x==0)||(q==0))&lt;br /&gt;
bin=1;&lt;br /&gt;
else&lt;br /&gt;
bin=(bin*(q-x+1))/x;&lt;br /&gt;
printf(&quot;%6d&quot;,bin);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
++q;&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/1944960759418407677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/c-program-on-pascals-triangle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1944960759418407677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1944960759418407677'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/c-program-on-pascals-triangle.html' title='C program on pascals triangle'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-4325978684050776594</id><published>2012-06-07T18:18:00.000+05:30</published><updated>2012-06-13T21:10:43.699+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>Exercise 7aC program for Finding the position of substring</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/*Write a C program that displays the position or index in the string S where the string T begins, or – 1 if S doesn’t contain T.&lt;br /&gt;
*/&lt;br /&gt;
&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;string.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
char a[50],b[20];&lt;br /&gt;
char *found;&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;\n Enter the main string&quot;);&lt;br /&gt;
gets(a);&lt;br /&gt;
printf(&quot;\n Enter&amp;nbsp; the b string to search in&quot;);&lt;br /&gt;
gets(b);&lt;br /&gt;
&lt;br /&gt;
found=strstr(a,b);&lt;br /&gt;
if(found)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;\nSecond String is found in the First String at %d position.\n&quot;,found-a);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
printf(&quot;-1&quot;);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/4325978684050776594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-that-displays-position.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/4325978684050776594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/4325978684050776594'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-that-displays-position.html' title='Exercise 7aC program for Finding the position of substring'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-3752688270880795539</id><published>2012-06-06T20:59:00.003+05:30</published><updated>2012-06-13T21:11:02.723+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>exercise 6b C program for Palindrome</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*Write a C program to determine if the given string is a palindrome or not &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;string.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; char a[35];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int j,i,sl,flag=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\n This program checks the validity of a string as a palindrome&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\n Enter the String to verify &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; gets(a);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sl=strlen(a);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0,j=sl-1;i!=j;i++,j--)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(a[i]!=a[j])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n The given string is not a palindrome&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag=1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if(flag==0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\n the given string is a palindrome&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/3752688270880795539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-to-determine-if-given.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3752688270880795539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3752688270880795539'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-to-determine-if-given.html' title='exercise 6b C program for Palindrome'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-1988908363092134606</id><published>2012-06-06T20:57:00.001+05:30</published><updated>2012-06-13T21:11:25.948+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>Exercise 6a C program to delete a number of charecters</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/* Write a C program that uses functions to perform the following operation:To delete n Characters from a given position in a given string. &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;string.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;char a[100], b[100];&lt;br /&gt;
&amp;nbsp;int i,j,n;&lt;br /&gt;
&amp;nbsp;int p;&lt;br /&gt;
&amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;printf(&quot;\n Enter the String of Charecters&quot;);&lt;br /&gt;
&amp;nbsp;gets(a);&lt;br /&gt;
&amp;nbsp;Printf(&quot;\n Enter the position from where the string has to be deleted&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;p); &lt;br /&gt;
&amp;nbsp;printf(&quot;\n Enter the no. of charecters you want to delete&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&amp;nbsp;r=strlen(a);&lt;br /&gt;
&amp;nbsp;if((n+p)&amp;gt;r)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n End of String reached&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n Please enter a valid no. of charecters..&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; for(i=0;i&amp;lt;r;i++);&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; b[i]=a[i];&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; for(i=p;i&amp;lt;r;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; b[i]=&#39;\0&#39;;&lt;br /&gt;
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int c[100] &lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;p-1;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; c[i]=b[i];&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; */&lt;br /&gt;
&amp;nbsp; printf(&quot;\n The String after deleting the substring is&quot;);&lt;br /&gt;
&amp;nbsp; printf(&quot;%s&quot;,b);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; /*printf(&quot;%s&quot;,c);*/&lt;br /&gt;
&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/1988908363092134606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-that-uses-functions-to_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1988908363092134606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/1988908363092134606'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-that-uses-functions-to_06.html' title='Exercise 6a C program to delete a number of charecters'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-9089891029621219621</id><published>2012-06-06T20:43:00.005+05:30</published><updated>2012-06-13T21:11:54.616+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>Exercise 6a C program for inserting a substring</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*Write a C program that uses functions to perform the following operation :To insert a sub-string in to a given main string from a given position. &lt;br /&gt;
*/&lt;br /&gt;
&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;
#incldue&amp;lt;string.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
char a[100],b[100];&lt;br /&gt;
int i,j;&lt;br /&gt;
int p&lt;br /&gt;
&lt;br /&gt;
clrscr();&lt;br /&gt;
printf(&quot;\n Enter the Main String&quot;);&lt;br /&gt;
gets(a);&lt;br /&gt;
printf(&quot;\n Enter the sub string&quot;);&lt;br /&gt;
gets(b);&lt;br /&gt;
&lt;br /&gt;
Printf(&quot;\n Enter the position in main string where the substring has to be substituted&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;p);&lt;br /&gt;
&lt;br /&gt;
for(i=p,j=0;j&amp;lt;=n;j++,i++)&lt;br /&gt;
{&lt;br /&gt;
a[i]=b[j];&lt;br /&gt;
}&lt;br /&gt;
a[i]=&#39;\0&#39;;&lt;br /&gt;
&lt;br /&gt;
printf(&quot;\n The main String after insertion of substring is\n&quot;);&lt;br /&gt;
printf(&quot;%s&quot;,a);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/9089891029621219621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-that-uses-functions-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/9089891029621219621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/9089891029621219621'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-that-uses-functions-to.html' title='Exercise 6a C program for inserting a substring'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-3688604734995899494</id><published>2012-06-05T19:01:00.001+05:30</published><updated>2012-06-13T21:12:12.878+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH C lang"/><title type='text'>Exercise 6b C program onAddition and Multiplication of two matrices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;/*Write a C program that uses functions to perform the following: i) Addition of Two Matrices ii) Multiplication of Two Matrices&lt;br /&gt;
*/ &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;math.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int a[10][10],b[10][10],c[10][10];&lt;br /&gt;
&amp;nbsp;int i,j,n;&lt;br /&gt;
&amp;nbsp;printf(&quot;\n Enter the n value for n*n square matrix&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;printf(&quot;\n&amp;nbsp; Enter The values for first matrix&quot;);&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; { &lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a[i][j]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;printf(&quot;\n&amp;nbsp; Enter The values for second matrix&quot;);&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{ &lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;b[i][j]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;printf(&quot;\nThe values for third matrix are as follows&quot;);&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; c[i][j]=a[i][j]+b[i][j];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\t%d&quot;,c[i][j]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
}/*end of main*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/* multiplication of two n*n matrices*/&lt;br /&gt;
&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;math.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int a[10][10],b[10][10],c[10][10];&lt;br /&gt;
&amp;nbsp;int i,j,n,k;&lt;br /&gt;
&amp;nbsp;printf(&quot;\n Enter the n value for n*n square matrix&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;printf(&quot;\n&amp;nbsp; Enter The values for first matrix&quot;);&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; { &lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;a[i][j]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;printf(&quot;\n&amp;nbsp; Enter The values for second matrix&quot;);&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{ &lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;b[i][j]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; c[i][j]=0;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; for(k=0;k&amp;lt;n;k++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; c[i][j]+=a[i][k]*b[k][j];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;printf(&quot;\n The resultant matrix after multiplication is:&quot;);&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{ &lt;br /&gt;
&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\t%d&quot;,c[i][j]);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/3688604734995899494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/b-write-c-program-that-uses-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3688604734995899494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3688604734995899494'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/b-write-c-program-that-uses-functions.html' title='Exercise 6b C program onAddition and Multiplication of two matrices'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-3791109784963608923</id><published>2012-06-05T18:33:00.003+05:30</published><updated>2012-06-05T18:58:29.488+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'>Write a C program to find both the largest and smallest number in a list of integers.</title><content type='html'>&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;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int a[10],i,j,n,count[10]=0; &lt;br /&gt;
&amp;nbsp;printf(&quot;\nEnter the capacity of list you are willing to give&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&amp;nbsp;printf(&quot;\nEnter&amp;nbsp; %d values&quot;); &lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;a[i]);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(a[i]&amp;lt;=a[j])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else &lt;br /&gt;
&amp;nbsp;&amp;nbsp; count[i]++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
printf(&quot;\nThe greatest value among the given list is&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
if(count[i]==n)&lt;br /&gt;
printf(&quot;%d&quot;,count[i]);&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/3791109784963608923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-to-find-both-largest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3791109784963608923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/3791109784963608923'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-to-find-both-largest.html' title='Write a C program to find both the largest and smallest number in a list of integers.'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-431402167124004678</id><published>2012-06-05T17:45:00.001+05:30</published><updated>2012-06-12T18:32:41.046+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'>Exercise 5b C program on mathematical operations between two numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*Write a C program, which takes two integer operands and one operator from the user, performs the operation and then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement)*/&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;math.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int a,b,c;&lt;br /&gt;
int ch;&lt;br /&gt;
printf(&quot;\n Enter the a value&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;a);&lt;br /&gt;
printf(&quot;\n Enter the b value&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;b);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
prinrf(&quot;\n*************MENU***************&quot;);&lt;br /&gt;
printf(&quot;\n1.Addition \n2.Substraction \n3.Multiplication \n4.Division \n5.Modulo \n6.Exit&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;ch);&lt;br /&gt;
switch(ch)&lt;br /&gt;
{&lt;br /&gt;
case 1: c=a+b;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe addition of two numbers is:%d&quot;,c);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 2: c=a-b;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nThe substraction of two numbers is:%d&quot;,c);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
case 3:c=a*b;&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; printf(&quot;\nThe multiplication of two numbers is:%d&quot;,c);&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; break;&lt;br /&gt;
case 4:c=a/b;&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; printf(&quot;\n The division of two numbers is:%d&quot;,c);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break; &lt;br /&gt;
case 5:c=a%b;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n The remainder for division of %d divided by %d is:%d&quot;a,b,c);&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; break;&lt;br /&gt;
case 6:printf(&quot;\nTermination by choice&quot;);&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; break;&lt;br /&gt;
default:printf(&quot;\nPlease enter a valid choice&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/431402167124004678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-which-takes-two-integer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/431402167124004678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/431402167124004678'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/write-c-program-which-takes-two-integer.html' title='Exercise 5b C program on mathematical operations between two numbers'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-8292744102376928273</id><published>2012-06-05T17:39:00.002+05:30</published><updated>2012-06-05T17:40:10.309+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'>The total distance travelled by vehicle in ‘t’ seconds is given by distance S = ut+1/2at2 where ‘u’ and             ‘a’ are the initial velocity (m/sec.) and acceleration (m/sec2) respectively. Write C program to find the              distance travelled at regular intervals of time given the values of ‘u’ and ‘a’. The program should provide            the flexibility to the user to select his own time intervals and repeat the calculations for different values of            ‘u’ and ‘a’</title><content type='html'>&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;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int int_count,i,time;&lt;br /&gt;
&amp;nbsp;float acc,dist,vel,total_dist=0;&lt;br /&gt;
&amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;printf(&quot;\nEnter the total no.of intervals to calculate the distance value&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;int_count);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;for(i=1;i&amp;lt;=int_count;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\nEnter the time(sec) travelled at interval %d&quot;,i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;time);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\nEnter the current velocity of vehicle at %d interval&quot;,i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;vel);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\n Enter the acceleration of vehicle at %d interval&quot;,i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;acc);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; dist=(vel*time)+0.5*acc*pow(time,2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;\nThe distance travelled by vehicle at interval %d is %f&quot;,i,dist);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; total_dist+=dist;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;Printf(&quot;The total distance travelled by vehicle in the specified interval time is %f&quot;,total_dist);&lt;br /&gt;
&amp;nbsp;getch();&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/8292744102376928273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/total-distance-travelled-by-vehicle-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/8292744102376928273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/8292744102376928273'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/total-distance-travelled-by-vehicle-in.html' title='The total distance travelled by vehicle in ‘t’ seconds is given by distance S = ut+1/2at2 where ‘u’ and             ‘a’ are the initial velocity (m/sec.) and acceleration (m/sec2) respectively. Write C program to find the              distance travelled at regular intervals of time given the values of ‘u’ and ‘a’. The program should provide            the flexibility to the user to select his own time intervals and repeat the calculations for different values of            ‘u’ and ‘a’'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-2196468689876784768</id><published>2012-06-05T17:34:00.002+05:30</published><updated>2012-06-06T17:55:59.134+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'>C program to solve Towers of hanoi problem using recursion</title><content type='html'>&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;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
void&amp;nbsp; towers(int x, char source, char&amp;nbsp; destination,char&amp;nbsp; unwanted)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;if(x==1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n move the disk from %c to %c&quot;,source,destination);&lt;br /&gt;
&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers(x-1,source,unwanted,destination)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; /*&amp;nbsp;&amp;nbsp;&amp;nbsp; destination= unwanted;&amp;nbsp;&amp;nbsp;&amp;nbsp; unwanted=destination;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n&amp;nbsp; Move disk from %c to %c\n&quot;, source,destination);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers(x-1,unwanted,destination,source);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&amp;nbsp;&amp;nbsp;&amp;nbsp; source=unwanted;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unwanted=source;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int totdisks,moves;&lt;br /&gt;
&amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;printf(&quot;\n Enter the number of disk you want to play with&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;\n %d&quot;,&amp;amp;totdisks);&lt;br /&gt;
&amp;nbsp;moves=pow(2,disks)-1;&lt;br /&gt;
&amp;nbsp;printf(&quot;\n The min no.of moves required to play is:%d\n&quot;,moves);&lt;br /&gt;
&amp;nbsp;towers(disk,A,B,C);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Working&amp;nbsp; Example:&lt;br /&gt;
let The number of disks be 3&lt;br /&gt;
and the towers are&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;br /&gt;
&lt;br /&gt;
towers(&amp;nbsp; 3&amp;nbsp; , a&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp; c)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 3!=1&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers(2,&amp;nbsp; a&amp;nbsp;&amp;nbsp;&amp;nbsp; c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2!=1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers(1, a&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp; c)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1==1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move disk from a to b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp; //*******************&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111111111111111&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }7&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; /* end of towers(1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move disk from&amp;nbsp; a to c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp; //*********************&amp;nbsp;&amp;nbsp;&amp;nbsp; 22222222222222222&amp;nbsp;&amp;nbsp;&amp;nbsp; *****************************&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers(1,&amp;nbsp; b&amp;nbsp;&amp;nbsp; c&amp;nbsp;&amp;nbsp;&amp;nbsp; a)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1==1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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; move&amp;nbsp;&amp;nbsp; disk from&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp; c&amp;nbsp;&amp;nbsp;&lt;br /&gt;
//&amp;nbsp; ********************&amp;nbsp; 33333333333333333&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;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*end of towers(1)&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;&amp;nbsp;&amp;nbsp; /* end of towers(2);&amp;nbsp; */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move disk from tower&amp;nbsp;&amp;nbsp; a&amp;nbsp; to&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
//&amp;nbsp; *********************&amp;nbsp; 4444444444444444&amp;nbsp;&amp;nbsp; ****************************&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers( 2, c&amp;nbsp; a&amp;nbsp;&amp;nbsp; b)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2!=1&lt;br /&gt;
&amp;nbsp;&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; towers(1&amp;nbsp; ,&amp;nbsp; c&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp; a)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 1==1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move&amp;nbsp; disk from&amp;nbsp;&amp;nbsp; c to&amp;nbsp;&amp;nbsp; a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp; // ******************&amp;nbsp; 555555555555555 *********************&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&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; end of towers(1)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; move disk from c to&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp; //&amp;nbsp; *************************&amp;nbsp; 66666666666666&amp;nbsp; *************************&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; towers(1&amp;nbsp;&amp;nbsp;&amp;nbsp; a&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp; c)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1==1&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; move&amp;nbsp;&amp;nbsp;&amp;nbsp; disk&amp;nbsp;&amp;nbsp; from&amp;nbsp; a&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp; b&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;
&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp; ************************&amp;nbsp; 777777777777777 ****************************&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/2196468689876784768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/c-program-to-solve-towers-of-hanoi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2196468689876784768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2196468689876784768'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/06/c-program-to-solve-towers-of-hanoi.html' title='C program to solve Towers of hanoi problem using recursion'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-6223761076682521235</id><published>2012-05-29T23:45:00.002+05:30</published><updated>2012-05-29T23:45:43.446+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'>Write a C program to calculate the following Sum:                          Sum=1-x2/2! +x4/4!-x6/6!+x8/8!-x10/10........</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&amp;nbsp;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&amp;nbsp;#include&amp;lt;math.h&amp;gt;&lt;br /&gt;&amp;nbsp;main()&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;int x,fac,sum=1; &lt;br /&gt;int range,cv,power; &lt;br /&gt;pirntf(&quot; Enter the value for x to print the sum value&quot;);&lt;br /&gt;&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;x);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;again:&lt;br /&gt;&amp;nbsp; printf(&quot; Enter the value for the range of power &amp;amp; factorial&quot;);&lt;br /&gt;&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;fac);&lt;br /&gt;&amp;nbsp;if(fac%2!=0)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; printf(&quot; please enter an even number as the range&quot;); &lt;br /&gt;&amp;nbsp; goto again;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;else&lt;br /&gt;&lt;br /&gt;&amp;nbsp; cvalue=1;&lt;br /&gt;&amp;nbsp; for(power=0;power&amp;lt;=range;power+2);&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(fac=power;fac&amp;gt;=1;fac--)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fac*=fac&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum+=(pow(-1,cvalue)*pow(x,power))/fac;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvalue++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;printf(&quot; The sum value for x= %d is %d&quot;,x,sum);&lt;br /&gt;}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/6223761076682521235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/write-c-program-to-calculate-following.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/6223761076682521235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/6223761076682521235'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/write-c-program-to-calculate-following.html' title='Write a C program to calculate the following Sum:                          Sum=1-x2/2! +x4/4!-x6/6!+x8/8!-x10/10........'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-2332441557538576383</id><published>2012-05-29T22:00:00.000+05:30</published><updated>2012-06-16T19:40:31.073+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'>2b) Write a C program toe find the roots of a quadratic equation.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*******program on quadratic equations********/ &lt;br /&gt;
&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;math.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int a,b,c;&lt;br /&gt;
int delta,root1,root2;&lt;br /&gt;
&amp;nbsp;printf(&quot;\nEnter the value for a:&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;a);&lt;br /&gt;
printf(&quot;\nEnter the value for b:&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;b);&lt;br /&gt;
printf(&quot;\n Enter the value for c&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;c);&lt;br /&gt;
delta=pow(b,2)-4*a*c&lt;br /&gt;
&amp;nbsp;if(delta&amp;lt;0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n The roots are imaginary&quot;)&lt;br /&gt;
else &lt;br /&gt;
if(delta&amp;gt;0)&lt;br /&gt;
{&lt;br /&gt;
root1= (-b-sqrt(delta))/(2*a)&lt;br /&gt;
root2= (-b+sqrt(delta))/(2*a)&lt;br /&gt;
printf(&quot;\nThe roots are \nroot1=%d \t root2=%d&quot;,root1,root2);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
root = -b/2*a; &lt;br /&gt;
printf(&quot;\n The root is&amp;nbsp; %d&quot;,&amp;amp;root);&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/2332441557538576383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/2b-write-c-program-toe-find-roots-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2332441557538576383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/2332441557538576383'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/2b-write-c-program-toe-find-roots-of.html' title='2b) Write a C program toe find the roots of a quadratic equation.'/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-6477623050905083547</id><published>2012-05-24T18:28:00.001+05:30</published><updated>2012-05-29T23:43:03.844+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><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 in c for Fibonacci series********* */&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int a=1,b=1;&lt;br /&gt;
&amp;nbsp;int n, c=0;&lt;br /&gt;
&amp;nbsp;printf(&quot;enter the range of fibinnocci series&amp;nbsp; to enter\n&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;range); &lt;br /&gt;
&amp;nbsp;printf(&quot; The fibinocci series is&quot;);&lt;br /&gt;
&amp;nbsp;printf(&quot;\n%d %d &quot;,a,b);&lt;br /&gt;
&amp;nbsp;while(c&amp;lt;=range)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=b+a; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=b;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b=c;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot; %d &quot;,a,b);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/6477623050905083547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/program-in-c-for-fibonacci-series.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/6477623050905083547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/6477623050905083547'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/program-in-c-for-fibonacci-series.html' title=''/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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-4014098412648254012.post-865209776534624621</id><published>2012-05-23T00:34:00.002+05:30</published><updated>2012-05-29T23:42:43.293+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JNTU ATH I year"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1a.Program in C for obtaining prime numbers up to 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;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int i,j,n; &lt;br /&gt;
int count[100];&lt;br /&gt;
printf(&quot;enter the range between 1 and 100 to print the prime numbers&quot;);&lt;br /&gt;
scan(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
for(i=1;i&amp;lt;=n;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(j=1;j&amp;lt;=i;j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(i%j==0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count[i]=count[i]+1;&lt;br /&gt;
&amp;nbsp;printf(&quot;The prime numbers are&quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for(i=1;i&amp;lt;=n;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if(count[i]==2)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; %d&quot;,a[i]);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodesandkeys.blogspot.com/feeds/865209776534624621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/program-in-c-for-obtaining-prime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/865209776534624621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4014098412648254012/posts/default/865209776534624621'/><link rel='alternate' type='text/html' href='http://kodesandkeys.blogspot.com/2012/05/program-in-c-for-obtaining-prime.html' title=''/><author><name>Dileep</name><uri>http://www.blogger.com/profile/05838656280799659554</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></feed>