<?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-5447168480950396039</id><updated>2024-08-30T23:03:33.191+05:30</updated><category term="Computer Graphics"/><category term="Vedic mathamatics"/><category term="Compiler"/><category term="Cryptography"/><category term="Computer Network"/><category term="8086"/><category term="Classic ASP"/><category term="Mathamatics"/><title type='text'>Mysterious World!</title><subtitle type='html'>If you wanna get in touch with this amazing World, you are at right place.!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-3379969585271936235</id><published>2015-04-29T14:16:00.001+05:30</published><updated>2015-04-29T14:17:54.058+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Vedic mathamatics"/><title type='text'>Squaring of Number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Now Squaring of Number will be very easy by the Multiplications method we have learn in previous Posts.&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Let me give you few Examples of it.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
9 &amp;nbsp; -1&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;9 &amp;nbsp; -1&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;8 &amp;nbsp;/ 1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
12 &amp;nbsp;+2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 97 &amp;nbsp; &amp;nbsp;-3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;108 &amp;nbsp; +8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;997 &amp;nbsp; &amp;nbsp;-3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1021 &amp;nbsp;+21&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;12 &amp;nbsp;+2&lt;/u&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt; 97 &amp;nbsp; &amp;nbsp;-3&lt;/u&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt;108 &amp;nbsp; +8&lt;/u&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt;997 &amp;nbsp; &amp;nbsp;-3&lt;/u&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;u&gt;1021 +21&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;14 &amp;nbsp;/4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;94 &amp;nbsp;/ 09 &amp;nbsp; &amp;nbsp; &amp;nbsp; 116 / 64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 994/009 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1042/441&lt;/b&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;
28 &amp;nbsp; &amp;nbsp;+8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 72 &amp;nbsp; &amp;nbsp;+2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;72 &amp;nbsp; &amp;nbsp; -8&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;28 &amp;nbsp; &amp;nbsp;+8&lt;/u&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt;72 &amp;nbsp; &amp;nbsp;+2&lt;/u&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt; 72 &amp;nbsp; &amp;nbsp; -8&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
36 / 64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 74 &amp;nbsp; /4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 64 /64&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;x2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/u&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt;x7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/u&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;u&gt; x8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
72 &amp;nbsp;/64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;518 /4 &lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;512/64&lt;/div&gt;
&lt;div&gt;
=784 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; &amp;nbsp;=518/4&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Now Lets see what if Number ends at 5!&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
The magic comes here!&lt;/h3&gt;
&lt;div&gt;
45*45 &amp;nbsp; = (4*5) /25 = &lt;b&gt;20 / 25&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
85*85 &amp;nbsp; = (8*9)/25 = &lt;b&gt;72 / 25&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
115*115 &amp;nbsp; = (11*12)/25 = &lt;b&gt;132 / 25&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
325*325 &amp;nbsp; = (32*33)/25 = &lt;b&gt;1056 / 25&lt;/b&gt; &amp;nbsp;---&amp;gt;&amp;nbsp;&lt;b&gt;i calculate 32*33 directly using Vedic method!&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1235*1235 &amp;nbsp; = (123*124)/25 = &lt;b&gt;15252 / 25&lt;/b&gt; &amp;nbsp;---&amp;gt;&amp;nbsp;&lt;b&gt;i calculate 123*124 directly using Vedic method!&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
105*105 &amp;nbsp; = (10*11)/25 = &lt;b&gt;110 / 25&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
95*95 &amp;nbsp; = (9*10)/25 = &lt;b&gt;90 / 25&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Now you have learn lots of tricks to multiply and square number very Quick with very easy Methods!&lt;br /&gt;Congratulations!&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Don&#39;t Forget to share it with your Friends.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/3379969585271936235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/squaring-of-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/3379969585271936235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/3379969585271936235'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/squaring-of-number.html' title='Squaring of Number'/><author><name>Jiten Amin</name><uri>http://www.blogger.com/profile/06500318083115629514</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDPo2JRYxaJf3CJ-aOyu-OkIZt-acLEDcXKgHK8R1EWVhJpPFm7DsDiFtiHNdHo3n-2Ei-D2Fq41ufwCtxSgBOF0hPmcujXduLbMluu8HGGMXLQTekYa9wrKhKsA1/s220/DSCN8191.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-2499522065911104679</id><published>2015-04-29T00:01:00.001+05:30</published><updated>2015-04-29T00:01:40.542+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Vedic mathamatics"/><title type='text'>Two digit multiplication Easy methods</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizsL7aHQP1mtDR-E6RmLKYeJSu8qzy2y5MpSzwQZszk9xaAM72ueUvUw9Keq6LAL9ML5FmsAZ_GQYPzsBnAxNqYtT989ibjxX5DujgiNO17_W7z836J7Z1hG7v8jPLEDsNeyGvtCwgjYM/s1600/IMG_20150428_123208.jpg&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/AVvXsEizsL7aHQP1mtDR-E6RmLKYeJSu8qzy2y5MpSzwQZszk9xaAM72ueUvUw9Keq6LAL9ML5FmsAZ_GQYPzsBnAxNqYtT989ibjxX5DujgiNO17_W7z836J7Z1hG7v8jPLEDsNeyGvtCwgjYM/s1600/IMG_20150428_123208.jpg&quot; height=&quot;200&quot; width=&quot;122&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Do you tired of teaching your child multiplication tables?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Here i have something for you that you will feel that you do not need to remember Multiplication table more then number 5. &lt;span style=&quot;color: blue;&quot;&gt;Isn&#39;t it sounds cool ?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Let me Explain how to multiply 9 x 6 using 10 as base.&lt;br /&gt;
&lt;br /&gt;
1) do 9-10 and write it to the right side of 9&lt;br /&gt;
&lt;br /&gt;
2) do 6-10 and write it to the right side of 6&lt;br /&gt;
&lt;br /&gt;
3) Now left side digit will calculate using Multiplication of right most digits that has been calculated using (1) and (2)&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTONUY7Y5V4w6yGpdtJq0Djf9MubRZluzugT9op_7f69rozBR4wMTWECsE96Hs6nGkW9rWKw_Opy5Qfzzu0SGPIO0L_QYmIl_O-u3RvFXzxgWjwt-GB8IduMNpwoKzOcaQqkiZu2CTKAU/s1600/IMG_20150428_123557.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTONUY7Y5V4w6yGpdtJq0Djf9MubRZluzugT9op_7f69rozBR4wMTWECsE96Hs6nGkW9rWKw_Opy5Qfzzu0SGPIO0L_QYmIl_O-u3RvFXzxgWjwt-GB8IduMNpwoKzOcaQqkiZu2CTKAU/s1600/IMG_20150428_123557.jpg&quot; height=&quot;200&quot; width=&quot;104&quot; /&gt;&lt;/a&gt;4) And Left Side Digit will calculate using add numbers in cross sides. i.e add 9 to -4 or add 6 to -1 both will give the same result.&lt;br /&gt;
&amp;nbsp;Here i have another Example of the same Methods that display another case of getting result in 2 digit right side. and how to handle it.&lt;br /&gt;
&lt;br /&gt;
In such case we simply add right side&#39;s first digit to left side.&lt;br /&gt;
&lt;br /&gt;
Now we are Moving towards number having more then 1 digit.&lt;br /&gt;
&lt;br /&gt;
Now i will Show you how to multiply number near 100.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizJC-AWdkd0cAUYwBLUyefC1T8_-CwNHT4IZ2Hh_qFpWX-YNFDVECzMHWqnyyzyhgt6X5IunZkGSmYDUO8qcCvJ-t6DCwm58UjqmPGDq2wWqG-Cu5BQvczNd1Sw6kP6B5wcaFb6OBKj_0/s1600/IMG_20150428_131136.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizJC-AWdkd0cAUYwBLUyefC1T8_-CwNHT4IZ2Hh_qFpWX-YNFDVECzMHWqnyyzyhgt6X5IunZkGSmYDUO8qcCvJ-t6DCwm58UjqmPGDq2wWqG-Cu5BQvczNd1Sw6kP6B5wcaFb6OBKj_0/s1600/IMG_20150428_131136.jpg&quot; height=&quot;200&quot; width=&quot;113&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Method will Remain same as above but just the difference is on right side in answer we will have 2 digit as it is multiplication by number near 100.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;How Simple it is! Then Why not use it by making daily Practice using it?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Now Lets see number Near 100 but above 100.&lt;br /&gt;
&lt;br /&gt;
113 &amp;nbsp; &amp;nbsp;+13&lt;br /&gt;
&lt;u&gt;102 &amp;nbsp; &amp;nbsp; +2&lt;/u&gt;&lt;br /&gt;
115 &amp;nbsp;/ &amp;nbsp;26&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;how easy????&lt;/span&gt;&lt;/h3&gt;
&lt;h2&gt;
Can you Imagine Multiplication can be much faster and easier like this?&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Let take another Example of numbers in 1000.&lt;br /&gt;
&lt;br /&gt;
988 &amp;nbsp; &amp;nbsp;-12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1113 &amp;nbsp; &amp;nbsp;+113&lt;br /&gt;
&lt;u&gt;998 &amp;nbsp; &amp;nbsp;-2 &amp;nbsp;&lt;/u&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;u&gt;1002 &amp;nbsp; &amp;nbsp;+2 &amp;nbsp;&amp;nbsp;&lt;/u&gt;&lt;br /&gt;
986 / 024 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1115 / &amp;nbsp;226&lt;br /&gt;
&lt;br /&gt;
What if one number is above our consider Base and another is above it???&lt;br /&gt;Let Understand it by Example.&lt;br /&gt;
&lt;br /&gt;
13 &amp;nbsp; +3&lt;br /&gt;
&lt;u&gt;7 &amp;nbsp; &amp;nbsp; -3&lt;/u&gt;&lt;br /&gt;
10 / -9&lt;br /&gt;
=91&lt;br /&gt;
&lt;br /&gt;
because -9 will be subtracted from 10&lt;br /&gt;
&lt;br /&gt;
Let see another Example.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3glPFS69fYYRTOtl_dIoSm44jRpQwl8PFXuucINdag14VDmFSZtDRNJRQQeHg50BGl5k1TkaSVcah0oC7a-WXzRpCntRzWR1onekwNlG6uV_-EDcMFJG770W-UNlrLHmRBc4ZCQK5ZCA/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3glPFS69fYYRTOtl_dIoSm44jRpQwl8PFXuucINdag14VDmFSZtDRNJRQQeHg50BGl5k1TkaSVcah0oC7a-WXzRpCntRzWR1onekwNlG6uV_-EDcMFJG770W-UNlrLHmRBc4ZCQK5ZCA/s1600/11.png&quot; height=&quot;200&quot; width=&quot;150&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
114 &amp;nbsp; +14&lt;br /&gt;
&lt;u&gt;97 &amp;nbsp; &amp;nbsp; - 3&amp;nbsp;&lt;/u&gt;&lt;br /&gt;
111 / -42&lt;br /&gt;
=11058&lt;br /&gt;
Because 42 will be subtracted from last 100.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Let Take another Example to clear it!&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;Now What if Number is not near by 10 or not 100 or not 1000????&lt;/h3&gt;
&lt;br /&gt;
Don&#39;t Worry We have Method for it too!&lt;br /&gt;
&lt;br /&gt;
i.e Example of base 20&lt;br /&gt;
&lt;br /&gt;
24 &amp;nbsp; +4&lt;br /&gt;
&lt;u&gt;18 &amp;nbsp; &amp;nbsp;-2&lt;/u&gt;&lt;br /&gt;
22 / -8&lt;br /&gt;
&lt;u&gt;x2 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/u&gt;&amp;nbsp;-----&amp;gt; here We Do multiplication by 2 because base is 10x2&lt;br /&gt;
44/-8&lt;br /&gt;
=432&lt;br /&gt;
&lt;br /&gt;
This Method is Similar for all Number that is come near by some number. Practice of it will make you aware which method we can use for which numbers.&lt;br /&gt;
&lt;br /&gt;
Let Take another Example to Finalize this Method with Practice.&lt;br /&gt;
&lt;br /&gt;
76 &amp;nbsp; &amp;nbsp;+6&lt;br /&gt;
&lt;u&gt;68 &amp;nbsp; &amp;nbsp;-2&lt;/u&gt;&lt;br /&gt;
74 / -12&lt;br /&gt;
&lt;u&gt;x7 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/u&gt;&lt;br /&gt;
518/-12&lt;br /&gt;
=5168&lt;br /&gt;
&lt;br /&gt;
We have many more methods that we will see in next blog. Till Practice this one!&lt;br /&gt;Have a Good Day.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/2499522065911104679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/two-digit-multiplication-easy-methods.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/2499522065911104679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/2499522065911104679'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/two-digit-multiplication-easy-methods.html' title='Two digit multiplication Easy methods'/><author><name>Jiten Amin</name><uri>http://www.blogger.com/profile/06500318083115629514</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDPo2JRYxaJf3CJ-aOyu-OkIZt-acLEDcXKgHK8R1EWVhJpPFm7DsDiFtiHNdHo3n-2Ei-D2Fq41ufwCtxSgBOF0hPmcujXduLbMluu8HGGMXLQTekYa9wrKhKsA1/s220/DSCN8191.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizsL7aHQP1mtDR-E6RmLKYeJSu8qzy2y5MpSzwQZszk9xaAM72ueUvUw9Keq6LAL9ML5FmsAZ_GQYPzsBnAxNqYtT989ibjxX5DujgiNO17_W7z836J7Z1hG7v8jPLEDsNeyGvtCwgjYM/s72-c/IMG_20150428_123208.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-7596776118341863262</id><published>2015-04-27T10:50:00.000+05:30</published><updated>2015-04-27T20:51:21.802+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Vedic mathamatics"/><title type='text'>Multiplication of 3 digit numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
If you want to multiply 123 and 456 then consider 1 in 123 as a ,2 in 123 as b and 3 in 123 as c.&lt;br /&gt;
&lt;br /&gt;
so the number 123 will be written as &lt;b&gt;ax2 + bx +c&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
here x is 10 so&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoiOyuccf7oxjdxiK5EIXGZS3p5U4q_tSRdgSCr9qlo4nv10hO3uNoTymmXc5Uctjb__p81E3RprIXqLxtXOfBqC48vyCEehid4z3DTXVZdUbPaIDnxybUOc_9A_8_3sewljd__2DlnQU/s1600/multiplication1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoiOyuccf7oxjdxiK5EIXGZS3p5U4q_tSRdgSCr9qlo4nv10hO3uNoTymmXc5Uctjb__p81E3RprIXqLxtXOfBqC48vyCEehid4z3DTXVZdUbPaIDnxybUOc_9A_8_3sewljd__2DlnQU/s1600/multiplication1.jpg&quot; height=&quot;228&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Here i have illustrate how to multiply 3 digit numbers using&lt;br /&gt;
&amp;nbsp;Vedic method &amp;nbsp;with Explanation&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
ax2+bx+c&lt;br /&gt;
=1*10*10 + 2*10 &amp;nbsp;+ 3&lt;br /&gt;
=100 + 20 + 3&lt;br /&gt;
=123&lt;br /&gt;
&lt;br /&gt;
in same manner we take 456 as dx2 + ex + f&lt;br /&gt;
&lt;br /&gt;
so now multiplication is between &amp;nbsp;&lt;b&gt;ax2 + bx +c and&amp;nbsp;dx2 + ex + f&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
so the answer is (ad)x4 + (ae + bd)x3 + (af + be + cd)x2 + (ce+bf)x + cf&lt;br /&gt;
&lt;br /&gt;
If you make this practice then multiplication be very easy for you.&lt;br /&gt;
&lt;br /&gt;
so using vedic trick multiplication is as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
1 &amp;nbsp;2 &amp;nbsp;3&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;4 &amp;nbsp;5 &amp;nbsp;6&lt;/u&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
4 3 8 7 8&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;&amp;nbsp;1 2 2 1 &amp;nbsp;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
5 6 0 8 8&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can do same method for any digit number for faster Multiplication.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/7596776118341863262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/multiplication-of-3-digit-numbers.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/7596776118341863262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/7596776118341863262'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/multiplication-of-3-digit-numbers.html' title='Multiplication of 3 digit numbers'/><author><name>Jiten Amin</name><uri>http://www.blogger.com/profile/06500318083115629514</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDPo2JRYxaJf3CJ-aOyu-OkIZt-acLEDcXKgHK8R1EWVhJpPFm7DsDiFtiHNdHo3n-2Ei-D2Fq41ufwCtxSgBOF0hPmcujXduLbMluu8HGGMXLQTekYa9wrKhKsA1/s220/DSCN8191.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoiOyuccf7oxjdxiK5EIXGZS3p5U4q_tSRdgSCr9qlo4nv10hO3uNoTymmXc5Uctjb__p81E3RprIXqLxtXOfBqC48vyCEehid4z3DTXVZdUbPaIDnxybUOc_9A_8_3sewljd__2DlnQU/s72-c/multiplication1.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-3301429890089676605</id><published>2015-04-26T10:18:00.001+05:30</published><updated>2015-04-27T20:51:39.148+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Vedic mathamatics"/><title type='text'>Vedic Maths: Multiplication of two digit numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4vxfz0laLNOBVkJ6heW847vZzhTnUPMeUdC1hQ-8g5vLx0rVglNLVgIdwlC4QUe6s9lLPi6TIcczlNVsvX5Xh7cufmqnstzJZ-m1XlMptsBhvIGwNIBfW2p2T9diU_iElrAZHVmTGis0/s1600/DSC04567.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4vxfz0laLNOBVkJ6heW847vZzhTnUPMeUdC1hQ-8g5vLx0rVglNLVgIdwlC4QUe6s9lLPi6TIcczlNVsvX5Xh7cufmqnstzJZ-m1XlMptsBhvIGwNIBfW2p2T9diU_iElrAZHVmTGis0/s1600/DSC04567.JPG&quot; height=&quot;218&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Learn vedic method of Multiplication of two digit number&lt;br /&gt;
and win prize by giving answer till 27/04/2015 9:00 AM&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Here i have explained you very easily how we can get multiplication of two digit numbers.&lt;br /&gt;
&lt;br /&gt;
Here i&#39;m also having one skim for you.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;i&gt;All participant can comment your answer with vedic method and have chance to win prize.&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;You have time till 27/04/2015 9:00 AM. to answer this question&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
One among all correct one will be chosen to have prize.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/3301429890089676605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/vedic-maths-multiplication-of-two-digit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/3301429890089676605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/3301429890089676605'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/vedic-maths-multiplication-of-two-digit.html' title='Vedic Maths: Multiplication of two digit numbers'/><author><name>Jiten Amin</name><uri>http://www.blogger.com/profile/06500318083115629514</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDPo2JRYxaJf3CJ-aOyu-OkIZt-acLEDcXKgHK8R1EWVhJpPFm7DsDiFtiHNdHo3n-2Ei-D2Fq41ufwCtxSgBOF0hPmcujXduLbMluu8HGGMXLQTekYa9wrKhKsA1/s220/DSCN8191.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4vxfz0laLNOBVkJ6heW847vZzhTnUPMeUdC1hQ-8g5vLx0rVglNLVgIdwlC4QUe6s9lLPi6TIcczlNVsvX5Xh7cufmqnstzJZ-m1XlMptsBhvIGwNIBfW2p2T9diU_iElrAZHVmTGis0/s72-c/DSC04567.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-8046380341056856184</id><published>2015-04-26T09:04:00.000+05:30</published><updated>2015-04-27T20:51:51.278+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Vedic mathamatics"/><title type='text'>Power of Vedic Mathematics And Why to learn it.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Vedic Maths is not different kind of maths then we have studied in schools. Then how it make difference and why people learn it?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The difference is vedic math include conclusions based on various sutras(Formula) from our vedas and Upnishdas.&lt;/b&gt; That help us to detecting type of problem. And we do calculation based on the problem type. So we do not follow conventional boring method all time and do calculation based on the situation &lt;b&gt;&lt;i&gt;&lt;u&gt;that make our mind very instant to answer.&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9W4sF1fcXtSWeYlDEzmeQobhBNeXK2950cCBqd51Q8Q3Y5gXCM__DzMjES6_8caf6q4GeRMM-5HoMR-zdC8dNXn5rf6jMxezbVNNtpZ8gOI3nNPr_-ljLi1YJ3ng3pLxdovQLMG3f3UE/s1600/vedic.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9W4sF1fcXtSWeYlDEzmeQobhBNeXK2950cCBqd51Q8Q3Y5gXCM__DzMjES6_8caf6q4GeRMM-5HoMR-zdC8dNXn5rf6jMxezbVNNtpZ8gOI3nNPr_-ljLi1YJ3ng3pLxdovQLMG3f3UE/s1600/vedic.jpg&quot; height=&quot;235&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Sample of how use of Vedic Maths reduces Time and make &lt;br /&gt;
maths Easy to learn for students&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
So the learner of Vedic Maths learn how to apply their knowledge in Maths as well as in other fields too.&lt;br /&gt;
&lt;br /&gt;
My sincere&lt;b&gt;&lt;u&gt; thanks to Jagadguru Sankaracharya Sri Bhakti Krishna Tirthaji Maharaja of Govardhana Matha, Puri&lt;/u&gt;&lt;/b&gt; for Writing 16 simple Mathematical formula based on Vedas.&lt;br /&gt;
&lt;br /&gt;
Vedic Maths is also popular as &lt;b&gt;&lt;i&gt;&lt;u&gt;High Speed maths or Mental maths&lt;/u&gt;&lt;/i&gt;&lt;/b&gt; Because once you will practice it you can calculate various things by mentally.&lt;br /&gt;
&lt;br /&gt;
Here in this post i&#39;m going to show you how easy Maths become for students using the various methods given in Vedic maths.&lt;br /&gt;
&lt;br /&gt;
At fist extent you might find it difficult but once you will practice it , it will become easy for you.Because it is totally different to use from conventional maths we are using.&lt;br /&gt;
&lt;br /&gt;
I&#39;m lover of Math so i&#39;m starting this online blogging for vedic maths free for all. So all can ask any doubt about maths , vedic maths.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/8046380341056856184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/power-of-vedic-mathematics-and-why-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/8046380341056856184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/8046380341056856184'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/power-of-vedic-mathematics-and-why-to.html' title='Power of Vedic Mathematics And Why to learn it.'/><author><name>Jiten Amin</name><uri>http://www.blogger.com/profile/06500318083115629514</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDPo2JRYxaJf3CJ-aOyu-OkIZt-acLEDcXKgHK8R1EWVhJpPFm7DsDiFtiHNdHo3n-2Ei-D2Fq41ufwCtxSgBOF0hPmcujXduLbMluu8HGGMXLQTekYa9wrKhKsA1/s220/DSCN8191.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9W4sF1fcXtSWeYlDEzmeQobhBNeXK2950cCBqd51Q8Q3Y5gXCM__DzMjES6_8caf6q4GeRMM-5HoMR-zdC8dNXn5rf6jMxezbVNNtpZ8gOI3nNPr_-ljLi1YJ3ng3pLxdovQLMG3f3UE/s72-c/vedic.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-1752700703994605382</id><published>2015-04-25T00:14:00.002+05:30</published><updated>2015-04-27T20:52:33.189+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Vedic mathamatics"/><title type='text'>Vedic Maths: Square a Number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Square a number by the Deficiency Sutra Method&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Sometimes we find it difficult to get square of a number by our routine methods. Here&#39;s how vedic mathematics can help us!&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Here are few easy steps to get through!&lt;br /&gt;
&lt;br /&gt;
1 : Find the base of given number. That is maybe, 10, 100, 1000, 10000, ...&lt;br /&gt;
2 : Find the difference between base and a given number. That is a deficiency value.&lt;br /&gt;
3 : Subtract the given number by deficiency and then multiply by base.&lt;br /&gt;
4 : Square the deficiency value.&lt;br /&gt;
5 : Add rule 3 result with the rule 4 result. And that&#39;s it!&lt;br /&gt;
&lt;br /&gt;
Example: 93 X 93 (Yaavadunam Sutra Method)&lt;br /&gt;
&lt;br /&gt;
1 : 93 base is 100&lt;br /&gt;
2 : 100 - 93 = 7&lt;br /&gt;
3 : (93 - 7) X 100 = 86 X 100 = 8600&lt;br /&gt;
4 : 7 X 7 = 49&lt;br /&gt;
5 : = 8600 + 49 = 8649&lt;br /&gt;
&lt;br /&gt;
93 X 93 = 8649&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/1752700703994605382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/vedic-maths-square-number_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/1752700703994605382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/1752700703994605382'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/vedic-maths-square-number_25.html' title='Vedic Maths: Square a Number'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-271788986343680008</id><published>2015-04-23T01:06:00.003+05:30</published><updated>2015-04-23T01:07:23.189+05:30</updated><title type='text'>Most common Passwords people use!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is the list of most common passwords people use!&lt;br /&gt;
Make sure you don&#39;t have anything from this to avoid being hacked by someone!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;123456&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;password&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;12345678&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;qwerty&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;abc123&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;123456789&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;111111&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1234567&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;iloveyou&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;adobe123&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Password is the most important thing you should take care of if you have important data in your account. If not then enjoy using simple passwords :D&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/271788986343680008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/most-common-passwords-people-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/271788986343680008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/271788986343680008'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/04/most-common-passwords-people-use.html' title='Most common Passwords people use!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-4274156123924209412</id><published>2015-02-13T15:49:00.001+05:30</published><updated>2015-02-13T15:49:11.276+05:30</updated><title type='text'>Jayesh and Sweety Wedding Dance</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/ak4zchKtk68&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/4274156123924209412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/02/jayesh-and-sweety-wedding-dance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4274156123924209412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4274156123924209412'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2015/02/jayesh-and-sweety-wedding-dance.html' title='Jayesh and Sweety Wedding Dance'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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://img.youtube.com/vi/ak4zchKtk68/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-2025485661533003239</id><published>2011-10-14T20:30:00.002+05:30</published><updated>2015-04-27T20:52:57.736+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Network"/><title type='text'>Shortest Path Algorithm: Dijkstra</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Aim&amp;nbsp; :- To find
shortest path&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#include &amp;lt;iostream.h&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#include &amp;lt;conio.h&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;class graph&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; public:&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; char a;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; char b;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; int e;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;};&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;class dijkstra&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; public:&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; int n,p,t,f;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; char c[10];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; void get_data();&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; void
get_connection(graph g[]);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; void shortest(graph
g[]);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; void
display(graph g[]);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; int minm(int
[],int,char []);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; int findu(graph
g[],int,int,char []);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;};&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;void
dijkstra::get_data()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;&quot;Enter number of nodes in your network:&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;n;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&quot;Write the name of each node&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
i=0;i&amp;lt;n;i++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;
cout&amp;lt;&amp;lt;&quot;Name of node &quot;&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;:&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;c[i];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;void
dijkstra::get_connection(graph g[])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; clrscr();&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&quot;NOW ITS TIME TO CONNECT THE
NODES...!&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&quot;Enter 1 if there is connection between
consicutive nodes otherwise enter 0&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; p=0;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
i=0;i&amp;lt;n;i++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; for(int
j=i+1;j&amp;lt;n;j++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;c[i]&amp;lt;&amp;lt;&quot;
&amp;amp; &quot;&amp;lt;&amp;lt;c[j]&amp;lt;&amp;lt;&quot; :&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int
t;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;t;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(t==1)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;g[p].a=c[i];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;g[p].b=c[j];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Enter distance:&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;g[p].e;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;p++;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;void
dijkstra::display(graph g[])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; clrscr();&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;&quot;YOUR NETWORK IS LIKE THIS:&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
i=0;i&amp;lt;p;i++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;
cout&amp;lt;&amp;lt;g[i].a&amp;lt;&amp;lt;&quot; &amp;amp;
&quot;&amp;lt;&amp;lt;g[i].b&amp;lt;&amp;lt;&quot; :&quot;&amp;lt;&amp;lt;g[i].e&amp;lt;&amp;lt;endl;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;void
dijkstra::shortest(graph g[])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; char s,C[10];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; int q,D[10];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&quot;NOW ENTER NODE from which you
want to find shortest distance:&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;s;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; t=0;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; f=0;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //function
to get distance &amp;amp; node array (Initialization)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
r=0;r&amp;lt;n;r++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; if(s!=c[r])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C[f]=c[r];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int
i=0;i&amp;lt;p;i++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if((g[i].a==s &amp;amp;&amp;amp; g[i].b==C[f]) ||
(g[i].a==C[f] &amp;amp;&amp;amp; g[i].b==s))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;D[f]=g[i].e;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;q=0;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(q!=0)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D[f]=32767;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f++;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; } int w,u,v;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; //greedy loop&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
for(q=0;q&amp;lt;n-2;q++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; v=minm(D,f,C);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;
for(w=0;w&amp;lt;f;w++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(C[w]!=NULL
&amp;amp;&amp;amp; C[w]!=C[v])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u=findu(g,w,v,C);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D[w]=(D[w]&amp;lt;(u+D[v])?D[w]:(u+D[v]));&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; C[v]=NULL;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
cout&amp;lt;&amp;lt;&quot;The sortest distance from node
&quot;&amp;lt;&amp;lt;s&amp;lt;&amp;lt;&quot;:&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
z=0;z&amp;lt;f-1;z++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;
cout&amp;lt;&amp;lt;D[z]&amp;lt;&amp;lt;&quot;,&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;
cout&amp;lt;&amp;lt;D[f-1];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;int dijkstra::findu(graph
g[],int w,int v,char C[])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
z=0;z&amp;lt;p;z++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; if((g[z].a==C[w]
&amp;amp;&amp;amp; g[z].b==C[v]) ||(g[z].a==C[v] &amp;amp;&amp;amp; g[z].b==C[w]))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return
g[z].e;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; return 32676;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;int
dijkstra::minm(int j[],int t,char c[])&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; int o=32766,q;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; for(int
i=0;i&amp;lt;t;i++)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; if(o&amp;gt;j[i]
&amp;amp;&amp;amp; c[i]!=NULL)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o=j[i];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q=i;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; return q;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;void main ()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; clrscr();&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; graph g[15];&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; dijkstra d;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; d.get_data();&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;
d.get_connection(g);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; d.display(g);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; d.shortest(g);&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; getch();&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Output:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-3mcC60iBg9Y/TphOVyUeEzI/AAAAAAAAAdI/IC-vZSLxmKQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-3mcC60iBg9Y/TphOVyUeEzI/AAAAAAAAAdI/IC-vZSLxmKQ/s400/1.png&quot; height=&quot;81&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-oPt4zj7uOgA/TphOWT8QcjI/AAAAAAAAAdQ/tZf_5dO4wyg/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-oPt4zj7uOgA/TphOWT8QcjI/AAAAAAAAAdQ/tZf_5dO4wyg/s400/2.png&quot; height=&quot;186&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-B-oo5zVhdnE/TphOWyvKbbI/AAAAAAAAAdY/iNJBPArwN4g/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-B-oo5zVhdnE/TphOWyvKbbI/AAAAAAAAAdY/iNJBPArwN4g/s400/3.png&quot; height=&quot;158&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/2025485661533003239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2011/10/shortest-path-algorithm-dijkstra.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/2025485661533003239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/2025485661533003239'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2011/10/shortest-path-algorithm-dijkstra.html' title='Shortest Path Algorithm: Dijkstra'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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="http://4.bp.blogspot.com/-3mcC60iBg9Y/TphOVyUeEzI/AAAAAAAAAdI/IC-vZSLxmKQ/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-8336114447259978176</id><published>2010-08-23T08:56:00.000+05:30</published><updated>2015-04-27T20:53:09.354+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Network"/><title type='text'>Decimal To Binary Converter</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//This Is The Program To Convert Decimal To Binary But Its Different From Other Ones!&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void printBinary(int n);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int num;&lt;br /&gt;
printf(&quot;Enter Decimal Number\n&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;num);&lt;br /&gt;
printBinary(num);&lt;br /&gt;
}&lt;br /&gt;
void printBinary(int n)&lt;br /&gt;
{&lt;br /&gt;
if (n&amp;gt;0)&lt;br /&gt;
{&lt;br /&gt;
printBinary(n/2);&lt;br /&gt;
printf(&quot;%c&quot;,&quot;01&quot;[n%2]);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/8336114447259978176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/08/decimal-to-binary-converter.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/8336114447259978176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/8336114447259978176'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/08/decimal-to-binary-converter.html' title='Decimal To Binary Converter'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5447168480950396039.post-3850152366376092126</id><published>2010-03-18T22:05:00.005+05:30</published><updated>2015-04-25T00:32:36.688+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cryptography"/><title type='text'>Monoalphabatic cipher encryption and decryption</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//MONOALPHABETIC ENCRYPTION AND DECRYPTION&lt;br /&gt;
//copyright jayeshaminnew@gmail.com&lt;br /&gt;
&lt;br /&gt;
//ENCRYPTION OF MONOALPHABAIC CIPHER&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;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;ctype.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
FILE *f1,*f2,*f3;&lt;br /&gt;
int i,j=0,k,asc[50],l,temp,temp1,flag=0;&lt;br /&gt;
char plain[50],cipher[50],key[50],m;&lt;br /&gt;
clrscr();&lt;br /&gt;
f1=fopen(&quot;plain.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
{&lt;br /&gt;
plain[j++]=l;&lt;br /&gt;
}&lt;br /&gt;
plain[j]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
j=0;&lt;br /&gt;
f2=fopen(&quot;key.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
{&lt;br /&gt;
key[j++]=l;&lt;br /&gt;
}&lt;br /&gt;
key[j]=NULL;&lt;br /&gt;
fclose(f2);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;plain text is\n&quot;&amp;lt;&amp;lt;plain;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;key is \n&quot;&amp;lt;&amp;lt;key;&lt;br /&gt;
//logic&lt;br /&gt;
k=0;&lt;br /&gt;
for(i=0;i&amp;lt;strlen(plain);i++)&lt;br /&gt;
{&lt;br /&gt;
asc[k++]=plain[i]-97;&lt;br /&gt;
}&lt;br /&gt;
k=0;&lt;br /&gt;
for(i=0;i&amp;lt;strlen(plain);i++)&lt;br /&gt;
{&lt;br /&gt;
if(asc[i]&amp;gt;=0 &amp;amp;&amp;amp; asc[i]&amp;lt;=25)&lt;br /&gt;
cipher[k++]=key[asc[i]];&lt;br /&gt;
else&lt;br /&gt;
cipher[k++]=plain[asc[i]+97];&lt;br /&gt;
}&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\n&quot;&amp;lt;&amp;lt;&quot;cipher text is\n&quot;;&lt;br /&gt;
cipher[k]=NULL;&lt;br /&gt;
cout&amp;lt;&amp;lt;cipher;&lt;br /&gt;
&lt;br /&gt;
f3=fopen(&quot;cipher.txt&quot;,&quot;w&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(cipher);i++)&lt;br /&gt;
putc(cipher[i],f2);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//DECRYPTION OF MONOALPHABATIC CIPHER&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;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;ctype.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
FILE *f1,*f2,*f3;&lt;br /&gt;
int i,j=0,k,asc[50],l,temp,temp1,flag=0;&lt;br /&gt;
char plain[50],cipher[50],key[50],m;&lt;br /&gt;
clrscr();&lt;br /&gt;
f1=fopen(&quot;cipher.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
{&lt;br /&gt;
cipher[j++]=l;&lt;br /&gt;
}&lt;br /&gt;
cipher[j]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
j=0;&lt;br /&gt;
f2=fopen(&quot;key.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
{&lt;br /&gt;
key[j++]=l;&lt;br /&gt;
}&lt;br /&gt;
key[j]=NULL;&lt;br /&gt;
fclose(f2);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;cipher text is\n&quot;&amp;lt;&amp;lt;cipher;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nkey is \n&quot;&amp;lt;&amp;lt;key;&lt;br /&gt;
//logic&lt;br /&gt;
k=0;&lt;br /&gt;
for(i=0;i&amp;lt;strlen(cipher);i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;strlen(key);j++)&lt;br /&gt;
{&lt;br /&gt;
if(cipher[i]==key[j])&lt;br /&gt;
break;&lt;br /&gt;
}&lt;br /&gt;
plain[k++]=j+97;&lt;br /&gt;
}&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\n&quot;&amp;lt;&amp;lt;&quot;plain text is\n&quot;;&lt;br /&gt;
plain[k]=NULL;&lt;br /&gt;
cout&amp;lt;&amp;lt;plain;&lt;br /&gt;
&lt;br /&gt;
f3=fopen(&quot;plain.txt&quot;,&quot;w&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(plain);i++)&lt;br /&gt;
putc(plain[i],f2);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/3850152366376092126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-monoalphabatic-cipher-encryption.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/3850152366376092126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/3850152366376092126'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-monoalphabatic-cipher-encryption.html' title='Monoalphabatic cipher encryption and decryption'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-66494852060551946</id><published>2010-03-18T22:04:00.002+05:30</published><updated>2015-04-25T00:32:49.970+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cryptography"/><title type='text'>Caesar cipher encryption and decryption</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//CAESAR CIPHER ENCRYPTION&lt;br /&gt;
//copyright jayeshaminnew@gmail.com&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;ctype.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
//declaring variables&lt;br /&gt;
FILE *f1,*f2;&lt;br /&gt;
int i,j=0,k,l,key,temp,temp1,flag=0;&lt;br /&gt;
char plain[50],cipher[50],m;&lt;br /&gt;
clrscr();&lt;br /&gt;
//reading plain text&lt;br /&gt;
f1=fopen(&quot;plain.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
plain[j++]=l;&lt;br /&gt;
plain[j]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
printf(&quot;your plain text is:%s\n&quot;,plain);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;key,printf(&quot;enter key:&quot;));&lt;br /&gt;
for(i=0;i&amp;lt;j;i++)&lt;br /&gt;
{&lt;br /&gt;
temp=plain[i];&lt;br /&gt;
temp1=temp;&lt;br /&gt;
temp1+=key;&lt;br /&gt;
if(temp1&amp;gt;122 &amp;amp;&amp;amp; islower(temp))&lt;br /&gt;
temp1-=26;&lt;br /&gt;
else if(temp1&amp;gt;90 &amp;amp;&amp;amp; isupper(temp))&lt;br /&gt;
temp1-=26;&lt;br /&gt;
else if(!((temp&amp;gt;=97 &amp;amp;&amp;amp; temp&amp;lt;=122) || (temp&amp;gt;=65 &amp;amp;&amp;amp; temp&amp;lt;=90)))&lt;br /&gt;
{&lt;br /&gt;
flag=1;&lt;br /&gt;
}&lt;br /&gt;
if(flag==0)&lt;br /&gt;
cipher[i]=temp1;&lt;br /&gt;
else&lt;br /&gt;
cipher[i]=temp;&lt;br /&gt;
flag=0;&lt;br /&gt;
}&lt;br /&gt;
cipher[i]=NULL;&lt;br /&gt;
//writing cipher text into file&lt;br /&gt;
f2=fopen(&quot;cipher.txt&quot;,&quot;w&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(cipher);i++)&lt;br /&gt;
putc(cipher[i],f2);&lt;br /&gt;
fclose(f2);&lt;br /&gt;
printf(&quot;your cipher text is:%s&quot;,cipher);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//CAESAR CIPHER DECRYPTION&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;ctype.h&amp;gt;&lt;br /&gt;
#include&amp;lt;process.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
FILE *f1,*f2;&lt;br /&gt;
int i,j=0,k,l,key,temp,temp1,flag=0;&lt;br /&gt;
char plain[50],cipher[50],meaning;&lt;br /&gt;
clrscr();&lt;br /&gt;
f1=fopen(&quot;cipher.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
cipher[j++]=l;&lt;br /&gt;
cipher[j]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
j=0;&lt;br /&gt;
for(i=0;i&amp;lt;26;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;strlen(cipher);j++)&lt;br /&gt;
{&lt;br /&gt;
temp=cipher[j];&lt;br /&gt;
temp1=temp;&lt;br /&gt;
temp1-=i;&lt;br /&gt;
if(temp1&amp;lt;97 &amp;amp;&amp;amp; islower(temp))&lt;br /&gt;
temp1+=26;&lt;br /&gt;
else if(temp1&amp;lt;65 &amp;amp;&amp;amp; isupper(temp))&lt;br /&gt;
temp1+=26;&lt;br /&gt;
else if(!((temp&amp;gt;=97 &amp;amp;&amp;amp; temp&amp;lt;=122) || (temp&amp;gt;=65 &amp;amp;&amp;amp; temp&amp;lt;=90)))&lt;br /&gt;
{&lt;br /&gt;
flag=1;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{}&lt;br /&gt;
if(flag==0)&lt;br /&gt;
plain[j]=temp1;&lt;br /&gt;
else&lt;br /&gt;
plain[j]=temp;&lt;br /&gt;
flag=0;&lt;br /&gt;
}&lt;br /&gt;
plain[j]=NULL;&lt;br /&gt;
printf(&quot;Message:%s&quot;,plain);&lt;br /&gt;
printf(&quot;\nis it meaning ful msg?? Y/N?\n&quot;);&lt;br /&gt;
scanf(&quot;%s&quot;,&amp;amp;meaning);&lt;br /&gt;
if(meaning==&#39;y&#39; || meaning==&#39;Y&#39;)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;your plain text is: %s&quot;,plain);&lt;br /&gt;
getch();&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/66494852060551946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-ceaser-cipher-encryption.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/66494852060551946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/66494852060551946'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-ceaser-cipher-encryption.html' title='Caesar cipher encryption and decryption'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-4842541395623736625</id><published>2010-03-18T22:01:00.005+05:30</published><updated>2015-04-25T00:33:00.685+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cryptography"/><title type='text'>Polyalphabatic cipher encryption and decryption</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//POLYALPHABATIC CIPHER ENCRYPTION&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;
void main()&lt;br /&gt;
{&lt;br /&gt;
int start=98,i,temp=97,j,k,m,n,l;&lt;br /&gt;
char plain[100],key[100],cipher[100],arr[27][27],ch1,ch2;&lt;br /&gt;
FILE *f1,*f2;&lt;br /&gt;
clrscr();&lt;br /&gt;
//code for matrix generation&lt;br /&gt;
for(i=0;i&amp;lt;27;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;27;j++)&lt;br /&gt;
{&lt;br /&gt;
if(temp&amp;gt;122 )&lt;br /&gt;
temp=32;&lt;br /&gt;
arr[i][j]=temp++;&lt;br /&gt;
if(temp==33)&lt;br /&gt;
temp=97;&lt;br /&gt;
}&lt;br /&gt;
temp=start++;&lt;br /&gt;
}&lt;br /&gt;
//printing matrix&lt;br /&gt;
for(i=0;i&amp;lt;27;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;27;j++)&lt;br /&gt;
printf(&quot;%c&quot;,arr[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
i=0;&lt;br /&gt;
f1=fopen(&quot;plain.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
plain[i++]=l;&lt;br /&gt;
plain[i]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
i=0;&lt;br /&gt;
f1=fopen(&quot;key.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
key[i++]=l;&lt;br /&gt;
key[i]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
temp=0;&lt;br /&gt;
printf(&quot;\nplain text: %s\n&quot;,plain);&lt;br /&gt;
for(i=strlen(key);i&amp;lt;strlen(plain);i++)&lt;br /&gt;
{&lt;br /&gt;
if(temp&amp;gt;strlen(key))&lt;br /&gt;
temp=0;&lt;br /&gt;
key[i]=key[temp++];&lt;br /&gt;
}&lt;br /&gt;
key[i]=NULL;&lt;br /&gt;
printf(&quot;key: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%s\n&quot;,key);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(plain);i++)&lt;br /&gt;
{&lt;br /&gt;
if(plain[i]!=32)&lt;br /&gt;
m=plain[i]-97;&lt;br /&gt;
else&lt;br /&gt;
m=26;&lt;br /&gt;
n=key[i]-97;&lt;br /&gt;
cipher[i]=arr[m][n];&lt;br /&gt;
}&lt;br /&gt;
cipher[i]=NULL;&lt;br /&gt;
f1=fopen(&quot;cipher.txt&quot;,&quot;w&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(cipher);i++)&lt;br /&gt;
putc(cipher[i],f1);&lt;br /&gt;
fclose(f1);&lt;br /&gt;
printf(&quot;cipher text:%s&quot;,cipher);&lt;br /&gt;
getch();&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
//POLYALPHABATIC CIPHER DECRYPTION&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;
void main()&lt;br /&gt;
{&lt;br /&gt;
int start=98,i,temp=97,j,k,m,n,l;&lt;br /&gt;
char plain[100],key[100],cipher[100],arr[27][27],ch1,ch2;&lt;br /&gt;
FILE *f1,*f2;&lt;br /&gt;
clrscr();&lt;br /&gt;
//code for matrix generation&lt;br /&gt;
for(i=0;i&amp;lt;27;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;27;j++)&lt;br /&gt;
{&lt;br /&gt;
if(temp&amp;gt;122 )&lt;br /&gt;
temp=32;&lt;br /&gt;
arr[i][j]=temp++;&lt;br /&gt;
if(temp==33)&lt;br /&gt;
temp=97;&lt;br /&gt;
}&lt;br /&gt;
temp=start++;&lt;br /&gt;
}&lt;br /&gt;
//printing matrix&lt;br /&gt;
for(i=0;i&amp;lt;27;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;27;j++)&lt;br /&gt;
printf(&quot;%c&quot;,arr[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
i=0;&lt;br /&gt;
f1=fopen(&quot;cipher.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
cipher[i++]=l;&lt;br /&gt;
cipher[i]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
i=0;&lt;br /&gt;
f1=fopen(&quot;key.txt&quot;,&quot;r&quot;);&lt;br /&gt;
while((l=getc(f1))!=EOF)&lt;br /&gt;
key[i++]=l;&lt;br /&gt;
key[i]=NULL;&lt;br /&gt;
fclose(f1);&lt;br /&gt;
temp=0;&lt;br /&gt;
printf(&quot;\ncipher text:%s\n&quot;,cipher);&lt;br /&gt;
for(i=strlen(key);i&amp;lt;strlen(cipher);i++)&lt;br /&gt;
{&lt;br /&gt;
if(temp&amp;gt;strlen(key))&lt;br /&gt;
temp=0;&lt;br /&gt;
key[i]=key[temp++];&lt;br /&gt;
}&lt;br /&gt;
key[i]=NULL;&lt;br /&gt;
k=0;&lt;br /&gt;
printf(&quot;key: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%s\n&quot;,key);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(cipher);i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;27;j++)&lt;br /&gt;
{&lt;br /&gt;
if(cipher[k]==arr[key[i]-97][j])&lt;br /&gt;
break;&lt;br /&gt;
}&lt;br /&gt;
plain[k++]=arr[0][j];&lt;br /&gt;
}&lt;br /&gt;
plain[k]=NULL;&lt;br /&gt;
f1=fopen(&quot;plain.txt&quot;,&quot;w&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(plain);i++)&lt;br /&gt;
putc(plain[i],f1);&lt;br /&gt;
fclose(f1);&lt;br /&gt;
printf(&quot;plain text: %s\n&quot;,plain);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/4842541395623736625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-polyalphabatic-cipher-decryption.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4842541395623736625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4842541395623736625'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-polyalphabatic-cipher-decryption.html' title='Polyalphabatic cipher encryption and decryption'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-5518937393726564867</id><published>2010-03-18T22:00:00.002+05:30</published><updated>2015-04-25T00:42:39.102+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>Bresenham&#39;s line drawing algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//This is&amp;nbsp;Bresenham&#39;s line drawing algorithm developed in C language&lt;br /&gt;
#include &amp;lt;graphics.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;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 jayubre(int,int,int,int);&lt;br /&gt;
void main(void)&lt;br /&gt;
{&lt;br /&gt;
int gdriver = DETECT, gmode,x1,y1,x2,y2;&lt;br /&gt;
initgraph(&amp;amp;gdriver, &amp;amp;gmode, &quot;..\\bgi&quot;);&lt;br /&gt;
printf(&quot;Enter starting points(x1,y1):\n&quot;),scanf(&quot;%d%d&quot;,&amp;amp;x1,&amp;amp;y1);&lt;br /&gt;
printf(&quot;Enter ending points(x2,y2):\n&quot;),scanf(&quot;%d%d&quot;,&amp;amp;x2,&amp;amp;y2);&lt;br /&gt;
jayubre(x1,y1,x2,y2);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
void jayubre(int x1,int y1,int x2,int y2)&lt;br /&gt;
{&lt;br /&gt;
int p0,dy,dx,sx=1,sy=1,xmax, ymax,x,y;&lt;br /&gt;
float m;&lt;br /&gt;
putpixel(x1,y1,8);&lt;br /&gt;
putpixel(x2,y2,8);&lt;br /&gt;
if(x1&amp;gt;x2)&lt;br /&gt;
sx=-1;&lt;br /&gt;
if(y1&amp;gt;y2)&lt;br /&gt;
sy=-1;&lt;br /&gt;
dx=abs(x2-x1);&lt;br /&gt;
dy=abs(y2-y1);&lt;br /&gt;
m=dy/dx;&lt;br /&gt;
if(m&amp;lt;1)&lt;br /&gt;
{&lt;br /&gt;
p0=2*dy-dx;&lt;br /&gt;
while(x1!=x2)&lt;br /&gt;
{&lt;br /&gt;
if(p0&amp;lt;0)&lt;br /&gt;
{&lt;br /&gt;
p0=p0+2*dy;&lt;br /&gt;
x1=x1+sx;&lt;br /&gt;
y1=y1;&lt;br /&gt;
putpixel(x1,y1,4);&lt;br /&gt;
}&lt;br /&gt;
else if(p0&amp;gt;=0)&lt;br /&gt;
{&lt;br /&gt;
p0=p0+2*dy-2*dx;&lt;br /&gt;
x1=x1+sx;&lt;br /&gt;
y1=y1+sy;&lt;br /&gt;
putpixel(x1,y1,4);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
p0=2*dx-dy;&lt;br /&gt;
while(y1!=y2)&lt;br /&gt;
{&lt;br /&gt;
if(p0&amp;lt;0)&lt;br /&gt;
{&lt;br /&gt;
p0=p0+2*dx;&lt;br /&gt;
y1=y1+sy;&lt;br /&gt;
x1=x1;&lt;br /&gt;
putpixel(x1,y1,4);&lt;br /&gt;
}&lt;br /&gt;
else if(p0&amp;gt;=0)&lt;br /&gt;
{&lt;br /&gt;
p0=p0+2*dx-2*dy;&lt;br /&gt;
y1=y1+sy;&lt;br /&gt;
x1=x1+sx;&lt;br /&gt;
putpixel(x1,y1,4);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/5518937393726564867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-bresenham-line-algo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/5518937393726564867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/5518937393726564867'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-bresenham-line-algo.html' title='Bresenham&#39;s line drawing algorithm'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-8249553526206324580</id><published>2010-03-18T21:57:00.003+05:30</published><updated>2015-04-25T00:47:24.784+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>Midpoint circle algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
// This is&amp;nbsp;Midpoint circle algorithm developed in C language&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;graphics.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;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 jayucircle(int xc,int yc,int r);&lt;br /&gt;
void jayuprint(int x,int y,int xc,int yc);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int xc,yc,p,r,x,y,gdriver = DETECT, gmode, errorcode;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; initgraph(&amp;amp;gdriver, &amp;amp;gmode, &quot;..\\bgi&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;enter value of (x,y,r)&quot;),scanf(&quot;%d%d%d&quot;,&amp;amp;xc,&amp;amp;yc,&amp;amp;r);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; jayucircle(xc,yc,r);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;br /&gt;
void jayucircle(int xc,int yc,int r)&lt;br /&gt;
{&lt;br /&gt;
int x=0,y=r,p=1-r;&lt;br /&gt;
jayuprint(0,r,xc,yc);&lt;br /&gt;
while(x&amp;lt;=y)&lt;br /&gt;
{&lt;br /&gt;
if(p&amp;lt;0)&lt;br /&gt;
{&lt;br /&gt;
x++;&lt;br /&gt;
p+=(2*x)+1;&lt;br /&gt;
jayuprint(x,y,xc,yc);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
x++;&lt;br /&gt;
y--;&lt;br /&gt;
p+=(2*x)+1-(2*y);&lt;br /&gt;
jayuprint(x,y,xc,yc);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
void jayuprint(int x,int y,int xc,int yc)&lt;br /&gt;
{&lt;br /&gt;
putpixel(xc+x,yc+y,7);&lt;br /&gt;
putpixel(xc-x,yc+y,7);&lt;br /&gt;
putpixel(xc+x,yc-y,7);&lt;br /&gt;
putpixel(xc-x,yc-y,7);&lt;br /&gt;
putpixel(yc+y,xc+x,7);&lt;br /&gt;
putpixel(yc-y,xc+x,7);&lt;br /&gt;
putpixel(yc+y,xc-x,7);&lt;br /&gt;
putpixel(yc-y,xc-x,7);&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/8249553526206324580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-mid-point-circle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/8249553526206324580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/8249553526206324580'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-mid-point-circle.html' title='Midpoint circle algorithm'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-1895903992409432083</id><published>2010-03-18T21:55:00.005+05:30</published><updated>2015-04-25T00:49:13.900+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>2D Modeling: 2D Rotation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
// This is&amp;nbsp;2D Rotation program using C language&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;graphics.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
float ans[3][10];&lt;br /&gt;
void multi(float tmat[3][3],float coormat[3][10],int size);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
float coormat[3][10],x[10],y[10],temp;&lt;br /&gt;
int gd=DETECT,gm,no,sx,sy,sum=0,i,j,k,theta;&lt;br /&gt;
float tmat[3][3]={{1,0,0},{0,1,0},{0,0,1}};&lt;br /&gt;
clrscr();&lt;br /&gt;
initgraph(&amp;amp;gd,&amp;amp;gm,&quot;..\\bgi&quot;);&lt;br /&gt;
printf(&quot;enter theta:&quot;),scanf(&quot;%d&quot;,&amp;amp;theta);&lt;br /&gt;
temp=(float)theta*3.14/180;&lt;br /&gt;
tmat[0][0]=cos(temp);&lt;br /&gt;
tmat[1][1]=cos(temp);&lt;br /&gt;
tmat[0][1]=-1*sin(temp);&lt;br /&gt;
tmat[1][0]=-1*sin(temp);&lt;br /&gt;
printf(&quot;Translation matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;3;j++)&lt;br /&gt;
printf(&quot;%4.1f\t&quot;,tmat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;enter no. of vertices:\n&quot;),scanf(&quot;%d&quot;,&amp;amp;no);&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
printf(&quot;enter (x%d,y%d):\n&quot;,i+1,i+1),scanf(&quot;%f%f&quot;,&amp;amp;x[i],&amp;amp;y[i]);&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[0][i]=x[i];&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[1][i]=y[i];&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[2][i]=1;&lt;br /&gt;
printf(&quot;co ordinate matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
printf(&quot;%4.2f\t&quot;,coormat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
//printing starting line&lt;br /&gt;
for(j=0;j&amp;lt;no-1;j++)&lt;br /&gt;
line(coormat[0][j],coormat[1][j],coormat[0][j+1],coormat[1][j+1]);&lt;br /&gt;
line(coormat[0][0],coormat[1][0],coormat[0][j],coormat[1][j]);&lt;br /&gt;
multi(tmat,coormat,no);&lt;br /&gt;
printf(&quot;answer matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
printf(&quot;%4.2f\t&quot;,ans[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
for(j=0;j&amp;lt;no-1;j++)&lt;br /&gt;
line(ans[0][j],ans[1][j],ans[0][j+1],ans[1][j+1]);&lt;br /&gt;
line(ans[0][0],ans[1][0],ans[0][j],ans[1][j]);&lt;br /&gt;
&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
void multi(float tmat[3][3],float coormat[3][10],int no)&lt;br /&gt;
{&lt;br /&gt;
int i,j,k,sum=0;&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
{&lt;br /&gt;
sum=0;&lt;br /&gt;
for(k=0;k&amp;lt;3;k++)&lt;br /&gt;
{&lt;br /&gt;
sum+=tmat[i][k]*coormat[k][j];&lt;br /&gt;
}&lt;br /&gt;
ans[i][j]=sum;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/1895903992409432083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-2d-rotation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/1895903992409432083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/1895903992409432083'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-2d-rotation.html' title='2D Modeling: 2D Rotation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-6947356750243824987</id><published>2010-03-18T21:55:00.002+05:30</published><updated>2015-04-25T00:49:53.892+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>2D Modeling: 2D scaling</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;graphics.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
float ans[3][10];&lt;br /&gt;
void multi(float tmat[3][3],float coormat[3][10],int size);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
float coormat[3][10],x[10],y[10];&lt;br /&gt;
int gd=DETECT,gm,no,sx,sy,sum=0,i,j,k;&lt;br /&gt;
float tmat[3][3]={{1,0,0},{0,1,0},{0,0,1}};&lt;br /&gt;
clrscr();&lt;br /&gt;
initgraph(&amp;amp;gd,&amp;amp;gm,&quot;..\\bgi&quot;);&lt;br /&gt;
printf(&quot;enter (sx,sy):&quot;),scanf(&quot;%d%d&quot;,&amp;amp;sx,&amp;amp;sy);&lt;br /&gt;
tmat[0][0]=sx;&lt;br /&gt;
tmat[1][1]=sy;&lt;br /&gt;
printf(&quot;Translation matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;3;j++)&lt;br /&gt;
printf(&quot;%4.1f\t&quot;,tmat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;enter no. of vertices:\n&quot;),scanf(&quot;%d&quot;,&amp;amp;no);&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
printf(&quot;enter (x%d,y%d):\n&quot;,i+1,i+1),scanf(&quot;%f%f&quot;,&amp;amp;x[i],&amp;amp;y[i]);&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[0][i]=x[i];&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[1][i]=y[i];&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[2][i]=1;&lt;br /&gt;
printf(&quot;co ordinate matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
printf(&quot;%4.2f\t&quot;,coormat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
//printing starting line&lt;br /&gt;
for(j=0;j&amp;lt;no-1;j++)&lt;br /&gt;
line(coormat[0][j],coormat[1][j],coormat[0][j+1],coormat[1][j+1]);&lt;br /&gt;
line(coormat[0][0],coormat[1][0],coormat[0][j],coormat[1][j]);&lt;br /&gt;
multi(tmat,coormat,no);&lt;br /&gt;
printf(&quot;answer matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
printf(&quot;%4.2f\t&quot;,ans[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
for(j=0;j&amp;lt;no-1;j++)&lt;br /&gt;
line(ans[0][j],ans[1][j],ans[0][j+1],ans[1][j+1]);&lt;br /&gt;
line(ans[0][0],ans[1][0],ans[0][j],ans[1][j]);&lt;br /&gt;
&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
void multi(float tmat[3][3],float coormat[3][10],int no)&lt;br /&gt;
{&lt;br /&gt;
int i,j,k,sum=0;&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
{&lt;br /&gt;
sum=0;&lt;br /&gt;
for(k=0;k&amp;lt;3;k++)&lt;br /&gt;
{&lt;br /&gt;
sum+=tmat[i][k]*coormat[k][j];&lt;br /&gt;
}&lt;br /&gt;
ans[i][j]=sum;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/6947356750243824987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-2d-scaling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/6947356750243824987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/6947356750243824987'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-2d-scaling.html' title='2D Modeling: 2D scaling'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-442163830421587410</id><published>2010-03-18T21:54:00.002+05:30</published><updated>2015-04-25T00:50:15.341+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>2D Modeling: 2D transformation</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;graphics.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
float ans[3][10];&lt;br /&gt;
void multi(float tmat[3][3],float coormat[3][10],int size);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
float coormat[3][10],x[10],y[10];&lt;br /&gt;
int gd=DETECT,gm,no,tx,ty,sum=0,i,j,k;&lt;br /&gt;
float tmat[3][3]={{1,0,0},{0,1,0},{0,0,1}};&lt;br /&gt;
clrscr();&lt;br /&gt;
initgraph(&amp;amp;gd,&amp;amp;gm,&quot;..\\bgi&quot;);&lt;br /&gt;
printf(&quot;enter (tx,ty):&quot;),scanf(&quot;%d%d&quot;,&amp;amp;tx,&amp;amp;ty);&lt;br /&gt;
tmat[0][2]=tx;&lt;br /&gt;
tmat[1][2]=ty;&lt;br /&gt;
printf(&quot;Translation matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;3;j++)&lt;br /&gt;
printf(&quot;%4.1f\t&quot;,tmat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;enter no. of vertices:\n&quot;),scanf(&quot;%d&quot;,&amp;amp;no);&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
printf(&quot;enter (x%d,y%d):\n&quot;,i+1,i+1),scanf(&quot;%f%f&quot;,&amp;amp;x[i],&amp;amp;y[i]);&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[0][i]=x[i];&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[1][i]=y[i];&lt;br /&gt;
for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
coormat[2][i]=1;&lt;br /&gt;
printf(&quot;co ordinate matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
printf(&quot;%4.2f\t&quot;,coormat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
//printing starting line&lt;br /&gt;
for(j=0;j&amp;lt;no-1;j++)&lt;br /&gt;
line(coormat[0][j],coormat[1][j],coormat[0][j+1],coormat[1][j+1]);&lt;br /&gt;
line(coormat[0][0],coormat[1][0],coormat[0][j],coormat[1][j]);&lt;br /&gt;
multi(tmat,coormat,no);&lt;br /&gt;
printf(&quot;answer matrix is:\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
printf(&quot;%4.2f\t&quot;,ans[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
for(j=0;j&amp;lt;no-1;j++)&lt;br /&gt;
line(ans[0][j],ans[1][j],ans[0][j+1],ans[1][j+1]);&lt;br /&gt;
line(ans[0][0],ans[1][0],ans[0][j],ans[1][j]);&lt;br /&gt;
&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
void multi(float tmat[3][3],float coormat[3][10],int no)&lt;br /&gt;
{&lt;br /&gt;
int i,j,k,sum=0;&lt;br /&gt;
for(i=0;i&amp;lt;3;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;no;j++)&lt;br /&gt;
{&lt;br /&gt;
sum=0;&lt;br /&gt;
for(k=0;k&amp;lt;3;k++)&lt;br /&gt;
{&lt;br /&gt;
sum+=tmat[i][k]*coormat[k][j];&lt;br /&gt;
}&lt;br /&gt;
ans[i][j]=sum;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/442163830421587410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-2d-transformation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/442163830421587410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/442163830421587410'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-2d-transformation.html' title='2D Modeling: 2D transformation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-221818948138935925</id><published>2010-03-18T21:37:00.002+05:30</published><updated>2015-04-25T00:51:22.531+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>Midpoint ellipse algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//This is&amp;nbsp;Midpoint ellipse algorithm developed using C language&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;graphics.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;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;
void jayuellipse(int x,int y,int rx,int ry);&lt;br /&gt;
void print(int,int,int,int);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int xc,yc,p,r,rx,ry,gdriver = DETECT, gmode;&lt;br /&gt;
initgraph(&amp;amp;gdriver, &amp;amp;gmode, &quot;..\\bgi&quot;);&lt;br /&gt;
printf(&quot;enter values of (x,y,xrad,yrad)&quot;),scanf(&quot;%d%d%d%d&quot;,&amp;amp;xc,&amp;amp;yc,&amp;amp;rx,&amp;amp;ry);&lt;br /&gt;
jayuellipse(xc,yc,rx,ry);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
void jayuellipse(int xc,int yc,int rx,int ry)&lt;br /&gt;
{&lt;br /&gt;
long int p,p2,x,y,dx,dy,ry2,rx2,rx2ry,hfrx2,_2ry2x,_2rx2y;&lt;br /&gt;
float x5;&lt;br /&gt;
//initialization of values&lt;br /&gt;
x=0;&lt;br /&gt;
y=ry;&lt;br /&gt;
ry2=ry*ry;&lt;br /&gt;
rx2=rx*rx;&lt;br /&gt;
rx2ry=rx*rx*ry;&lt;br /&gt;
hfrx2=.25*rx*rx;&lt;br /&gt;
p=ry2-rx2ry+hfrx2;&lt;br /&gt;
_2ry2x=2*ry*ry*x;&lt;br /&gt;
_2rx2y=2*rx*rx*y;&lt;br /&gt;
dx=_2ry2x;&lt;br /&gt;
dy=_2rx2y;&lt;br /&gt;
//calculation for region 1&lt;br /&gt;
while(dx&amp;lt;dy)&lt;br /&gt;
{&lt;br /&gt;
print(x,y,xc,yc);&lt;br /&gt;
if(p&amp;lt;0)&lt;br /&gt;
{&lt;br /&gt;
x++;&lt;br /&gt;
dx+=2*ry2;&lt;br /&gt;
p+=dx+ry2;&lt;br /&gt;
}&lt;br /&gt;
else if(p&amp;gt;=0)&lt;br /&gt;
{&lt;br /&gt;
x++;&lt;br /&gt;
y--;&lt;br /&gt;
dx+=2*ry2;&lt;br /&gt;
dy-=2*rx2;&lt;br /&gt;
p+=dx+ry2-dy;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
//end of region 1&lt;br /&gt;
&amp;nbsp;x5=x+.5;&lt;br /&gt;
p2=(ry2*x5*x5)+(rx2*(y-1)*(y-1))-(rx2*ry2);&lt;br /&gt;
//calculation for region 2&lt;br /&gt;
while(y&amp;gt;=0)&lt;br /&gt;
{&lt;br /&gt;
print(x,y,xc,yc);&lt;br /&gt;
if(p2&amp;gt;0)&lt;br /&gt;
{&lt;br /&gt;
y--;&lt;br /&gt;
dx+=-(2*rx2);&lt;br /&gt;
p2+=rx2-(dx);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
x++;y--;&lt;br /&gt;
dx+=-(2*rx2);&lt;br /&gt;
dy+=2*ry2;&lt;br /&gt;
p2+=rx2-(dx)+(dy);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
void print(int x,int y,int xc,int yc)&lt;br /&gt;
{&lt;br /&gt;
putpixel(x+xc,y+yc,7);&lt;br /&gt;
putpixel(x+xc,-y+yc,7);&lt;br /&gt;
putpixel(-x+xc,y+yc,7);&lt;br /&gt;
putpixel(-x+xc,-y+yc,7);&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/221818948138935925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-mid-point-ellipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/221818948138935925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/221818948138935925'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cg-mid-point-ellipse.html' title='Midpoint ellipse algorithm'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-4174334449053952729</id><published>2010-03-10T22:09:00.002+05:30</published><updated>2015-04-25T00:38:12.733+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cryptography"/><title type='text'>Playfair cipher encyption and decryption</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//PLAYFAIR CIPHER ENCRYPTION&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;
void main()&lt;br /&gt;
{&lt;br /&gt;
FILE *fp;&lt;br /&gt;
int i,m=0,flag=0,j,n,row1,row2,col1,col2;&lt;br /&gt;
char ch,d,mat[5][5],key[10],k[10],c[30],a[10],ct[10],pt[10];&lt;br /&gt;
clrscr();&lt;br /&gt;
fp=fopen(&quot;key.txt&quot;,&quot;r&quot;);&lt;br /&gt;
fscanf(fp,&quot;%s&quot;,key);&lt;br /&gt;
fclose(fp);&lt;br /&gt;
printf(&quot;The key is: %s&quot;,key);&lt;br /&gt;
//finding new key removing duplicates...&lt;br /&gt;
for(i=0;i&amp;lt;strlen(key);)&lt;br /&gt;
{&lt;br /&gt;
if(key[i]==&#39;j&#39;)&lt;br /&gt;
key[i]=105;&lt;br /&gt;
flag=0;&lt;br /&gt;
for(j=0;j&amp;lt;i;j++)&lt;br /&gt;
{&lt;br /&gt;
if(key[i]==key[j])&lt;br /&gt;
flag=1;&lt;br /&gt;
}&lt;br /&gt;
if(flag==1)&lt;br /&gt;
i++;&lt;br /&gt;
else&lt;br /&gt;
k[m++]=key[i++]; &amp;nbsp;//new array for key&lt;br /&gt;
}&lt;br /&gt;
k[m]=NULL;&lt;br /&gt;
printf(&quot;\nThe new key is &amp;nbsp;:\n%s&quot;,k);//printing new key&lt;br /&gt;
//store key in matrix&lt;br /&gt;
m=0;&lt;br /&gt;
for(ch=97;ch&amp;lt;=122;)&lt;br /&gt;
{&lt;br /&gt;
flag=0;&lt;br /&gt;
for(i=0;i&amp;lt;strlen(k);i++)&lt;br /&gt;
{&lt;br /&gt;
if(k[i]==ch)&lt;br /&gt;
flag=1;&lt;br /&gt;
}&lt;br /&gt;
if(flag==1)&lt;br /&gt;
ch++;&lt;br /&gt;
else if(ch==&#39;j&#39;)&lt;br /&gt;
ch++;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
c[m++]=ch;&lt;br /&gt;
ch++;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
c[m]=NULL;&lt;br /&gt;
//construction of 2-D 5*5 matrix&lt;br /&gt;
m=0;&lt;br /&gt;
n=0;&lt;br /&gt;
for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;5;j++)&lt;br /&gt;
{&lt;br /&gt;
mat[i][j]=k[m++];&lt;br /&gt;
if(m&amp;gt;strlen(k))&lt;br /&gt;
mat[i][j]=c[n++];&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;5;j++)&lt;br /&gt;
printf(&quot;\t %c&quot;,mat[i][j]);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
//retrieve plain-text from file&lt;br /&gt;
i=0;&lt;br /&gt;
fp=fopen(&quot;plain.txt&quot;,&quot;r&quot;);&lt;br /&gt;
fscanf(fp,&quot;%s&quot;,pt);&lt;br /&gt;
fclose(fp);&lt;br /&gt;
printf(&quot;\nThe plain-text is: %s&quot;,pt);&lt;br /&gt;
//seperation of digram&lt;br /&gt;
j=0;&lt;br /&gt;
printf(&quot;\nAfter Processing Digrams: &quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(pt);)&lt;br /&gt;
{ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(pt[i]==pt[i+1])&lt;br /&gt;
{&lt;br /&gt;
a[j++]=pt[i];&lt;br /&gt;
a[j++]=&#39;x&#39;;&lt;br /&gt;
i+=1;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
a[j++]=pt[i];&lt;br /&gt;
a[j++]=pt[i+1];&lt;br /&gt;
i+=2;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
a[j]=&#39;\0&#39;;&lt;br /&gt;
printf(&quot;%s&quot;,a);&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(a);i+=2)//Loop for conversion to cipher text&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;5;j++)// matrix row&lt;br /&gt;
{&lt;br /&gt;
for(m=0;m&amp;lt;5;m++)//matrix column&lt;br /&gt;
{&lt;br /&gt;
//Find position of 1st element of Digram in matrix&lt;br /&gt;
if(a[i]==mat[j][m])&lt;br /&gt;
{&lt;br /&gt;
row1=j;&lt;br /&gt;
col1=m;&lt;br /&gt;
}&lt;br /&gt;
//Find position of 2nd element of Digram in matrix&lt;br /&gt;
if(a[i+1]==mat[j][m])&lt;br /&gt;
{&lt;br /&gt;
row2=j;&lt;br /&gt;
col2=m;&lt;br /&gt;
}&lt;br /&gt;
//Condition For both elements in same row of matrix&lt;br /&gt;
if(row1==row2)&lt;br /&gt;
{&lt;br /&gt;
ct[i]=mat[row1][(col1+1)%5];&lt;br /&gt;
ct[i+1]=mat[row1][(col2+1)%5];&lt;br /&gt;
}&lt;br /&gt;
//Condition For both elements in same column of matrix&lt;br /&gt;
else if(col1==col2)&lt;br /&gt;
{&lt;br /&gt;
ct[i]=mat[(row1+1)%5][col1];&lt;br /&gt;
ct[i+1]=mat[(row2+1)%5][col2];&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
ct[i]=mat[row1][col2];&lt;br /&gt;
ct[i+1]=mat[row2][col1];&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
ct[i]=&#39;\0&#39;;&lt;br /&gt;
fp=fopen(&quot;cipher.txt&quot;,&quot;w&quot;);&lt;br /&gt;
printf(&quot;\nCipher Text: &quot;);&lt;br /&gt;
//store cipher text in a file&lt;br /&gt;
for(i=0;i&amp;lt;strlen(ct);i++)&lt;br /&gt;
putc(ct[i],fp);&lt;br /&gt;
fclose(fp);&lt;br /&gt;
printf(&quot;%s&quot;,ct); &amp;nbsp; &amp;nbsp; &amp;nbsp;//print cipher text&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//PLAYFAIR CIPHER DECRYPTION&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;
void main()&lt;br /&gt;
{&lt;br /&gt;
FILE *fp;&lt;br /&gt;
int i,m=0,flag=0,j,n,row1,row2,col1,col2;&lt;br /&gt;
char ch,d,mat[5][5],key[10],k[10],c[30],a[10],ct[10],pt[10];&lt;br /&gt;
clrscr();&lt;br /&gt;
fp=fopen(&quot;key.txt&quot;,&quot;r&quot;);&lt;br /&gt;
fscanf(fp,&quot;%s&quot;,key);&lt;br /&gt;
fclose(fp);&lt;br /&gt;
printf(&quot;The key is: %s&quot;,key);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(key);)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(key[i]==&#39;j&#39;)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;key[i]=&#39;i&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;flag=0;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(j=0;j&amp;lt;i;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(key[i]==key[j])&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;flag=1;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(flag==1)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;i++;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;k[m++]=key[i++]; &amp;nbsp;//new array for key&lt;br /&gt;
}&lt;br /&gt;
k[m]=NULL;&lt;br /&gt;
// printing new key after elimination of duplicates&lt;br /&gt;
printf(&quot;\nThe new key is &amp;nbsp;:\n%s&quot;,k);&lt;br /&gt;
//seperation of key letters from a-z &amp;amp; later stored in an array&lt;br /&gt;
m=0;&lt;br /&gt;
for(ch=97;ch&amp;lt;=122;)&lt;br /&gt;
{&lt;br /&gt;
flag=0;&lt;br /&gt;
for(i=0;i&amp;lt;strlen(k);i++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(k[i]==ch)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;flag=1;&lt;br /&gt;
}&lt;br /&gt;
if(flag==1)&lt;br /&gt;
ch++;&lt;br /&gt;
else if(ch==&#39;j&#39;)&lt;br /&gt;
ch++;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
c[m++]=ch;&lt;br /&gt;
ch++;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
c[m]=NULL;&lt;br /&gt;
//construction of 2-D 5*5 matrix&lt;br /&gt;
m=0;&lt;br /&gt;
n=0;&lt;br /&gt;
for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(j=0;j&amp;lt;5;j++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;mat[i][j]=k[m++];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(m&amp;gt;strlen(k))&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;mat[i][j]=c[n++];&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(j=0;j&amp;lt;5;j++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;\t %c&quot;,mat[i][j]);&lt;br /&gt;
}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;\n&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//retrieve cipher-text from file&lt;br /&gt;
&lt;br /&gt;
i=0;&lt;br /&gt;
fp=fopen(&quot;cipher.txt&quot;,&quot;r&quot;);&lt;br /&gt;
fscanf(fp,&quot;%s&quot;,ct);&lt;br /&gt;
fclose(fp);&lt;br /&gt;
printf(&quot;\nThe Cipher-text is: %s&quot;,ct);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
printf(&quot;\n&quot;);&lt;br /&gt;
for(i=0;i&amp;lt;strlen(ct);i+=2)//conversion to plain text&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(j=0;j&amp;lt;5;j++) //matrix row&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(m=0;m&amp;lt;5;m++)//matrix column&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Find position of 1st element of Digram in matrix&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(ct[i]==mat[j][m])&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;row1=j;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;col1=m;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Find position of 2nd element of Digram in matrix&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(ct[i+1]==mat[j][m])&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;row2=j;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;col2=m;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Condition For both elements in same row of matrix&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(row1==row2)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;pt[i]=mat[row1][(col1-1+5)%5];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;pt[i+1]=mat[row1][(col2-1+5)%5];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Condition For both elements in same column of matrix&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;else if(col1==col2)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;pt[i]=mat[(row1-1+5)%5][col1];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;pt[i+1]=mat[(row2-1+5)%5][col2];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;else&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;pt[i]=mat[row1][col2];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;pt[i+1]=mat[row2][col1];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
pt[i]=&#39;\0&#39;;&lt;br /&gt;
fp=fopen(&quot;plain.txt&quot;,&quot;w&quot;);&lt;br /&gt;
printf(&quot;\nPlain Text: &quot;);&lt;br /&gt;
//store plain text in a file&lt;br /&gt;
for(i=0;i&amp;lt;strlen(pt);i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;putc(pt[i],fp);&lt;br /&gt;
fclose(fp);&lt;br /&gt;
printf(&quot;%s&quot;,pt); &amp;nbsp; &amp;nbsp; &amp;nbsp;//print plain text&lt;br /&gt;
fclose(fp);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/4174334449053952729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-playfair-cipher-decryption.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4174334449053952729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4174334449053952729'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cns-playfair-cipher-decryption.html' title='Playfair cipher encyption and decryption'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-1974245748277931596</id><published>2010-03-10T21:30:00.004+05:30</published><updated>2015-04-25T00:53:25.148+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Network"/><title type='text'>Synchronous TDM and Asynchronous TDM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
// This is &amp;nbsp;Synchronous TDM developed using C&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;#include&amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;int i,j,k=0,l,maxlength=0,length[3],flag1=0,flag2=0,flag3=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;char usr1[10],usr2[10],usr3[10],newusr1[10],newusr2[10],newusr3[10],b[100];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;enter data for user 1\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;gets(usr1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;enter data for user 2\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;gets(usr2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;enter data for user 3\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;gets(usr3);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;length[0]=strlen(usr1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;length[1]=strlen(usr2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;length[2]=strlen(usr3);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;for(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;if(maxlength&amp;lt;length[j])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;maxlength=length[j];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;for(i=0;i&amp;lt;maxlength;i++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;if(usr1[i]!=NULL &amp;amp;&amp;amp; flag1==0)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k++]=usr1[i];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k++]=&#39;$&#39;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;flag1=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;if(usr2[i]!=NULL &amp;amp;&amp;amp; flag2==0)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k++]=usr2[i];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k++]=&#39;$&#39;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;flag2=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;if(usr3[i]!=NULL &amp;amp;&amp;amp; flag3==0)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k++]=usr3[i];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k++]=&#39;$&#39;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;flag3=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;b[k]=NULL;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;k=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;for(i=1;i&amp;lt;=maxlength;i++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;\nframe %d is &quot;,i);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;for(j=0;j&amp;lt;3;j++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;%c&quot;,b[k++]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;strcpy(newusr1,usr3);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;strcpy(newusr2,usr1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;strcpy(newusr3,usr2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;\nTransferring Data To Respective Users...\n\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;user1 gets %s \n&quot;,newusr1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;user2 gets %s \n&quot;,newusr2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;printf(&quot;user3 gets %s \n&quot;,newusr3);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;return 0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
//This is&amp;nbsp;&amp;nbsp;Asynchronous TDM developed using C&lt;br /&gt;
&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;ctype.h&amp;gt;&lt;br /&gt;
#include&amp;lt;string.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int i,j,k=0,l,frame,maxlength=0,length_t=0,length[3],flag1=0,flag2=0,flag3=0;&lt;br /&gt;
char usr1[10],usr2[10],usr3[10],newusr1[10],newusr2[10],newusr3[10],b[100];&lt;br /&gt;
printf(&quot;enter data for user 1\n&quot;);&lt;br /&gt;
gets(usr1);&lt;br /&gt;
printf(&quot;enter data for user 2\n&quot;);&lt;br /&gt;
gets(usr2);&lt;br /&gt;
printf(&quot;enter data for user 3\n&quot;);&lt;br /&gt;
gets(usr3);&lt;br /&gt;
length[0]=strlen(usr1);&lt;br /&gt;
length[1]=strlen(usr2);&lt;br /&gt;
length[2]=strlen(usr3);&lt;br /&gt;
for(j=0;j&amp;lt;3;j++)&lt;br /&gt;
{&lt;br /&gt;
length_t+=length[j];&lt;br /&gt;
if(maxlength&amp;lt;length[j])&lt;br /&gt;
maxlength=length[j];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if(length_t%2==0)&lt;br /&gt;
frame=length_t/2;&lt;br /&gt;
else&lt;br /&gt;
frame=(length_t/2)+1;&lt;br /&gt;
printf(&quot;\ntotal frames are %d\n&quot;,frame);&lt;br /&gt;
&lt;br /&gt;
for(i=0;i&amp;lt;maxlength;i++)&lt;br /&gt;
{&lt;br /&gt;
if(isalpha(usr1[i]))&lt;br /&gt;
b[k++]=usr1[i];&lt;br /&gt;
if(isalpha(usr2[i]))&lt;br /&gt;
b[k++]=usr2[i];&lt;br /&gt;
if(isalpha(usr3[i]))&lt;br /&gt;
b[k++]=usr3[i];&lt;br /&gt;
}&lt;br /&gt;
b[k]=NULL;&lt;br /&gt;
k=0;&lt;br /&gt;
for(i=1;i&amp;lt;=frame;i++)&lt;br /&gt;
{&lt;br /&gt;
printf(&quot;\nframe %d is &quot;,i);&lt;br /&gt;
for(j=0;j&amp;lt;2;j++)&lt;br /&gt;
printf(&quot;%c&quot;,b[k++]);&lt;br /&gt;
}&lt;br /&gt;
k=0;&lt;br /&gt;
for(i=0;i&amp;lt;frame;i++)&lt;br /&gt;
{&lt;br /&gt;
if(i&amp;lt;strlen(usr1))&lt;br /&gt;
newusr2[i]=b[k++];&lt;br /&gt;
if(i&amp;lt;strlen(usr2))&lt;br /&gt;
newusr3[i]=b[k++];&lt;br /&gt;
if(i&amp;lt;strlen(usr3))&lt;br /&gt;
newusr1[i]=b[k++];&lt;br /&gt;
}&lt;br /&gt;
newusr1[strlen(usr3)]=NULL;&lt;br /&gt;
newusr2[strlen(usr1)]=NULL;&lt;br /&gt;
newusr3[strlen(usr2)]=NULL;&lt;br /&gt;
printf(&quot;\nTransferring Data To Respective Users...\n\n&quot;);&lt;br /&gt;
printf(&quot;user1 gets %s \n&quot;,newusr1);&lt;br /&gt;
printf(&quot;user2 gets %s \n&quot;,newusr2);&lt;br /&gt;
printf(&quot;user3 gets %s \n&quot;,newusr3);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/1974245748277931596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cn-asynchronous-tdm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/1974245748277931596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/1974245748277931596'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/03/cn-asynchronous-tdm.html' title='Synchronous TDM and Asynchronous TDM'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-2904515746023092835</id><published>2010-02-20T21:44:00.001+05:30</published><updated>2015-04-25T01:26:02.873+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>Polygon Drawing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//This program is to draw polygon using C&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;graphics.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;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;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
void line(float x1,float y1,float x2,float y2);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int gdriver = DETECT, gmode,i,no;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; float x[100],y[100];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; initgraph(&amp;amp;gdriver, &amp;amp;gmode, &quot;..\\bgi&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;how many sides you want&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;no;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;enter x&quot;&amp;lt;&amp;lt;i+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;x[i];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;enter y&quot;&amp;lt;&amp;lt;i+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;y[i];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; x[no]=x[0];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; y[no]=y[0];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;no;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; line(x[i],y[i],x[i+1],y[i+1]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; void line(float x1,float y1,float x2,float y2)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int i;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; float sign,dx,dy;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if(abs(x2-x1)&amp;gt;abs(y2-y1))&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sign=abs(x2-x1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sign=abs(y2-y1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; dx=x2-x1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; dy=y2-y1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;=sign;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; putpixel(x1,y1,15);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; x1+=dx/sign;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; y1+=dy/sign;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/2904515746023092835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/02/graphics-polygon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/2904515746023092835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/2904515746023092835'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/02/graphics-polygon.html' title='Polygon Drawing'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-4577917854827255918</id><published>2010-02-20T21:29:00.001+05:30</published><updated>2015-04-25T01:30:01.757+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Graphics"/><title type='text'>DDA Line drawing algorithm </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
// This is&amp;nbsp;Digital differential analyzer(DDA) line drawing algorithm using C&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;graphics.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;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;
void jayudda(float,float,float,float);&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int gdriver = DETECT, gmode;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; float x1,y1,x2,y2;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; initgraph(&amp;amp;gdriver, &amp;amp;gmode, &quot;..\\bgi&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;enter starting points(x1,y1):&quot;),scanf(&quot;%f%f&quot;,&amp;amp;x1,&amp;amp;y1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printf(&quot;enter ending points(x2,y2):&quot;),scanf(&quot;%f%f&quot;,&amp;amp;x2,&amp;amp;y2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; jayudda(x1,y1,x2,y2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;
}&lt;br /&gt;
void jayudda(float x1,float y1,float x2,float y2)&lt;br /&gt;
{&lt;br /&gt;
int i;&lt;br /&gt;
float sign;&lt;br /&gt;
if(abs(x2-x1)&amp;gt;abs(y2-y1))&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sign=abs(x2-x1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sign=abs(y2-y1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;=sign;i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; putpixel(x1,y1,7);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; x1+=(x2-x1)/sign;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; y1+=(y2-y1)/sign;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/4577917854827255918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/02/graphics-dda-line-algo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4577917854827255918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4577917854827255918'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2010/02/graphics-dda-line-algo.html' title='DDA Line drawing algorithm '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-4193695845033740742</id><published>2009-10-09T22:08:00.000+05:30</published><updated>2015-04-25T01:31:31.143+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compiler"/><title type='text'>Operator precedence parsing algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;link href=&quot;file:///C:%5CDOCUME%7E1%5Cjayu%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml&quot; rel=&quot;File-List&quot;&gt;&lt;/link&gt;&lt;link href=&quot;file:///C:%5CDOCUME%7E1%5Cjayu%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx&quot; rel=&quot;themeData&quot;&gt;&lt;/link&gt;&lt;link href=&quot;file:///C:%5CDOCUME%7E1%5Cjayu%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml&quot; rel=&quot;colorSchemeMapping&quot;&gt;&lt;/link&gt;
   &lt;m:smallfrac m:val=&quot;off&quot;&gt;
   &lt;m:dispdef&gt;
   &lt;m:lmargin m:val=&quot;0&quot;&gt;
   &lt;m:rmargin m:val=&quot;0&quot;&gt;
   &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;
   &lt;m:wrapindent m:val=&quot;1440&quot;&gt;
   &lt;m:intlim m:val=&quot;subSup&quot;&gt;
   &lt;m:narylim m:val=&quot;undOvr&quot;&gt;
  &lt;/m:narylim&gt;&lt;/m:intlim&gt;
&lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:&quot;Cambria Math&quot;;
 panose-1:2 4 5 3 5 4 6 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:roman;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
 {font-family:&quot;Comic Sans MS&quot;;
 panose-1:3 15 7 2 3 3 2 2 2 4;
 mso-font-charset:0;
 mso-generic-font-family:script;
 mso-font-pitch:variable;
 mso-font-signature:647 0 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-unhide:no;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-fareast-font-family:Calibri;
 mso-bidi-font-family:&quot;Times New Roman&quot;;}
.MsoChpDefault
 {mso-style-type:export-only;
 mso-default-props:yes;
 font-size:10.0pt;
 mso-ansi-font-size:10.0pt;
 mso-bidi-font-size:10.0pt;
 mso-ascii-font-family:Calibri;
 mso-fareast-font-family:Calibri;
 mso-hansi-font-family:Calibri;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.0in 1.0in 1.0in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;

&lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;//This is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Comic Sans MS;&quot;&gt;&lt;span style=&quot;font-size: 13.3333330154419px; line-height: 15.3333320617676px;&quot;&gt;operator precedence parsing algorithm using C&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;char
pre[10][10],ss[30],rs[30],stk[10][2];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;int i,j,k,n,p,sp=0,br=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void push();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void pop();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;char chk_pre();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void reduce_ss();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;clrscr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(pre[0],&quot;
+*()]&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(pre[1],&quot;+&amp;gt;&amp;lt;&amp;lt;&amp;gt;&amp;gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(pre[2],&quot;*&amp;gt;&amp;gt;&amp;lt;&amp;gt;&amp;gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(pre[3],&quot;(&amp;lt;&amp;lt;&amp;lt;=e&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(pre[4],&quot;)&amp;gt;&amp;gt;e&amp;gt;&amp;gt;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(pre[5],&quot;[&amp;lt;&amp;lt;&amp;lt;e=&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;n=6;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;scanf (&quot;%s&quot;,ss,
printf(&quot;Enter the source string : &quot;));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(rs,&quot;[&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcat(rs,ss);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcat(rs,&quot;]&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(ss,rs);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;printf(&quot;\n&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;for(i=0;i&amp;lt;n;i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;for(j=0;j&amp;lt;strlen(pre[i]);j++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;printf(&quot;%c\t&quot;,pre[i][j]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;printf(&quot;\n&quot;);}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;while(ss[2]!=&#39;]&#39; &amp;amp;&amp;amp;
br==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;sp=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;for(i=0;i&amp;lt;strlen(ss);i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if( (ss[i]&amp;gt;=&#39;a&#39; &amp;amp;&amp;amp;
ss[i]&amp;lt;=&#39;z&#39;) || (ss[i]&amp;gt;=&#39;A&#39; &amp;amp;&amp;amp; ss[i]&amp;lt;=&#39;Z&#39;) )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;continue;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;push();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if(stk[sp-1][1]==&#39;e&#39; ||
ss[1]==&#39;]&#39; || ss[0]==&#39;]&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{ printf(&quot;\n\nInvalid
string.&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;br=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;break; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if((stk[sp-1][1]==&#39;&amp;gt;&#39;
&amp;amp;&amp;amp; stk[sp-2][1]==&#39;&amp;lt;&#39;) || stk[sp-1][1]==&#39;=&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{ reduce_ss();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;pop(); } } }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if(ss[2]==&#39;]&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;printf(&quot;\nValid
String.&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void push()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{ stk[sp][0]=ss[i];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;stk[sp][1]=chk_pre();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;sp++; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void pop()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{ char tmp,tmp1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;sp--;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp=stk[sp][0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp1=stk[sp][1];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;sp--;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;stk[sp][0]=tmp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;stk[sp][1]=tmp1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;sp++; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;char chk_pre()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{ char tmp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if(i==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp=&#39; &#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{ for(j=0;j&amp;lt;n;j++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;for(k=0;k&amp;lt;strlen(pre[j]);k++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if(stk[sp-1][0]==pre[j][0]
&amp;amp;&amp;amp; stk[sp][0]==pre[0][k])&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp=(pre[j][k]); }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;return tmp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;void reduce_ss()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&amp;nbsp;
char t1[30],t3[30];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;int tmp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;if(stk[sp-1][0]==&#39;)&#39; &amp;amp;&amp;amp;
stk[sp-2][0]==&#39;(&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp=i-2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp=i-3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;for(j=0;j&amp;lt;tmp;j++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&amp;nbsp;
t1[j]=ss[j];&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;t1[j]=&#39;\0&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;tmp=tmp+3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;k=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;for(j=tmp;j&amp;lt;strlen(ss);j++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;{&amp;nbsp;
t3[k]=ss[j];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;k++;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;t3[k]=&#39;\0&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(ss,&quot;&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcpy(ss,t1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcat(ss,&quot;i&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;strcat(ss,t3);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Comic Sans MS&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/4193695845033740742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2009/10/operator-precedence_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4193695845033740742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/4193695845033740742'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2009/10/operator-precedence_09.html' title='Operator precedence parsing algorithm'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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-5447168480950396039.post-7141801990769399006</id><published>2009-09-17T18:46:00.000+05:30</published><updated>2015-04-25T01:33:46.332+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Classic ASP"/><title type='text'>Database connection in classic ASP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Dim con&lt;br /&gt;
Dim rs&lt;br /&gt;
Dim ConnectString&lt;br /&gt;
dim accessdb&lt;br /&gt;
set con=server.CreateObject(&quot;ADODB.Connection&quot;)&lt;br /&gt;
set rs=server.CreateObject(&quot;ADODB.RecordSet&quot;)&lt;br /&gt;
ConnectString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\database.mdb&quot;&lt;br /&gt;
con.open ConnectString&lt;br /&gt;
accessdb=&quot;database.mdb&quot;&lt;br /&gt;
mysql=&quot;select * from table&quot;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
rs.open mysql, con, 3, 3&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jayeshaminnew.blogspot.com/feeds/7141801990769399006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayeshaminnew.blogspot.com/2009/09/database-connection-in-asp.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/7141801990769399006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5447168480950396039/posts/default/7141801990769399006'/><link rel='alternate' type='text/html' href='http://jayeshaminnew.blogspot.com/2009/09/database-connection-in-asp.html' title='Database connection in classic ASP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09318593936474353428</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>2</thr:total></entry></feed>