<?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/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;C04DSXw7eCp7ImA9Wx9UE04.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236</id><updated>2011-02-10T01:59:38.200-08:00</updated><title>Something About</title><subtitle type='html'>Welcome to my blog-spot.I've often wondered about paradoxes and mysteries of many countries. When 
I ponder over today's India, I'm filled with less of hope and more of despair. A chance encounter in a remote island on other side of globe has left me completely mystified. But don't worry. We want to develop India as a Super Power.We can do it. Have a nice day!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;A0UFRXc_eSp7ImA9Wx9UEUg.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-7642931211349804206</id><published>2011-02-08T02:00:00.000-08:00</published><updated>2011-02-08T02:00:14.941-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-08T02:00:14.941-08:00</app:edited><title>Saraswati Puja: The Festival Of Goddess Saraswati</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_ObKx5HDjp5M/TVETaLXtSRI/AAAAAAAAAKE/L-ziGsglkJo/s1600/maaSaraswati2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="297" src="http://4.bp.blogspot.com/_ObKx5HDjp5M/TVETaLXtSRI/AAAAAAAAAKE/L-ziGsglkJo/s320/maaSaraswati2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_ObKx5HDjp5M/TVETVRLdUUI/AAAAAAAAAKA/msomSgZErYg/s1600/maa-saraswati-vandana2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/_ObKx5HDjp5M/TVETVRLdUUI/AAAAAAAAAKA/msomSgZErYg/s320/maa-saraswati-vandana2.jpg" width="269" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_ObKx5HDjp5M/TVEUIOuXSiI/AAAAAAAAAKQ/W3IOgtM9hwI/s1600/Saraswati.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/_ObKx5HDjp5M/TVEUIOuXSiI/AAAAAAAAAKQ/W3IOgtM9hwI/s320/Saraswati.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_ObKx5HDjp5M/TVETlT7WnLI/AAAAAAAAAKM/BIPnXzWEM-E/s1600/saraswati-vandana-hindi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/_ObKx5HDjp5M/TVETlT7WnLI/AAAAAAAAAKM/BIPnXzWEM-E/s320/saraswati-vandana-hindi.jpg" width="265" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-7642931211349804206?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/7642931211349804206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2011/02/saraswati-puja-festival-of-goddess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/7642931211349804206?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/7642931211349804206?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2011/02/saraswati-puja-festival-of-goddess.html' title='Saraswati Puja: The Festival Of Goddess Saraswati'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ObKx5HDjp5M/TVETaLXtSRI/AAAAAAAAAKE/L-ziGsglkJo/s72-c/maaSaraswati2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUMBQX8yeSp7ImA9Wx9VEko.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-345368822540943496</id><published>2011-01-28T05:28:00.000-08:00</published><updated>2011-01-28T21:04:10.191-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-28T21:04:10.191-08:00</app:edited><title>C sharp : To print dynamic pyramid.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Now , You can play with pyramids and many different shapes from below mentioned programmed :-&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Program(1): To print 1 * 10 Counting Table.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Text;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;namespace pyramid&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Program&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int k, l;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (k = 1; k &amp;lt; 11; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (l = 1; l &amp;lt; 11; l++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.Write(" &amp;nbsp;| &amp;nbsp;");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.Write(k * l);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine("\n");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Program(2): To print pyramid as you like.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Text;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;namespace pyramid&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Program&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine("Enter the value ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int k = int.Parse(Console.ReadLine());&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int n = k - 1;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int x = 2 * (k - 1) + 1;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int p = 0; p &amp;lt;= n; p++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int j = k - 1; j &amp;gt;= 0; j--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&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;= (x - 2 * (k - 1)); i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;if (i % 2 == 1)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;else&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;k--;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Program(3): To print Tower of Hanoui....&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Text;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;namespace pyramid&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Program&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.Write("Enter the for Tower of Hanaui: ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int n = Convert.ToInt32(Console.ReadLine());&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 1; i &amp;lt;= n; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int j = n; j &amp;gt;= i; j--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int k = 1; k &amp;lt;= i; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int m = 2; m &amp;lt;= i; m++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int a = 1; a &amp;lt;= n; a++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int j = n; j &amp;gt;= i; j--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int k = 1; k &amp;lt;= i; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int m = 2; m &amp;lt;= i; m++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(ex.Message);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Start Program(4): To print Zigzag Tower&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Text;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;namespace pyramid&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Program&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.Write("Enter number for Zigzag Tower: ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int n = Convert.ToInt32(Console.ReadLine());&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 1; i &amp;lt;= n; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int j = n; j &amp;gt;= i; j--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int k = 1; k &amp;lt;= i; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int m = 2; m &amp;lt;= i; m++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int a = 1; a &amp;lt;= n; a++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int b = n; b &amp;gt;= a; b--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int k = 1; k &amp;lt;= i; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int m = 2; m &amp;lt;= i; m++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(ex.Message);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Program(5): To print Nexted Pyramid...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Text;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;namespace pyramid&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Program&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.Write("Enter number for nexted pyramid: ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int n = Convert.ToInt32(Console.ReadLine());&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 1; i &amp;lt;= n; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int j = n; j &amp;gt;= i; j--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int k = 1; k &amp;lt;= i; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int m = 2; m &amp;lt;= i; m++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int a = 1; a &amp;lt;= n; a++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int b = n; b &amp;gt;= a; b--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int c = 1; c &amp;lt;= a; c++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int d = 2; d &amp;lt;= a; d++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(ex.Message);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Program(6): To print two simultaneouly Pyramid...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Text;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;namespace pyramid&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class Program&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.Write("Enter number for simultaneously pyramid: ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int n = Convert.ToInt32(Console.ReadLine());&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 1; i &amp;lt;= n; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int j = n; j &amp;gt;= i; j--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int k = 1; k &amp;lt;= i; k++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int m = 2; m &amp;lt;= i; m++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int a = 1; a &amp;lt;= n; a++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int b = n; b &amp;gt;= a; b--)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write(" ");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int c = 1; c &amp;lt;= a; c++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;for (int d = 2; d &amp;lt;= a; d++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.Write("*");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&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;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(ex.Message);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;I hope you enjoy and learn lots of programming concepts; basically looping concepts. You can contact us through this blog or email me at: ksantosh.mca@gmail.com&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Thanks,&amp;nbsp;Happy programming..&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;S. K. Singh&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-345368822540943496?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/345368822540943496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2011/01/c-sharp-to-print-pyramid-as-you-like.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/345368822540943496?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/345368822540943496?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2011/01/c-sharp-to-print-pyramid-as-you-like.html' title='C sharp : To print dynamic pyramid.'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Dk8BR3o7fCp7ImA9Wx9WFko.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-5223870291773222261</id><published>2011-01-21T21:40:00.000-08:00</published><updated>2011-01-21T21:40:56.404-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-21T21:40:56.404-08:00</app:edited><title>Mobile Number Portability</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-size: large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;The Telecom Regulatory Authority of India (TRAI) announced, on November 20, 2009, that Mobile Number Portability (MNP) will be introduced in India, on December 31, 2009.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; line-height: 16pt; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;TRAI said that subscribers in India will be able to change their service providers while keeping the same mobile number, at a fee of no more than Rs 19. It doesn’t matter whether you want switch from GSM to CDMA or vice-versa, or within GSM and CDMA opetaors; you can still retain the same number. However, initially, you will be able to switch operators and retain the number only within the same telecom circle. You cannot retain the same number and change operators if you want to, say, move from Delhi to Mumbai.&lt;/span&gt;&lt;/div&gt;&lt;h2 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666666; font-style: italic; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Mobile Number Portability changeover charges&lt;/span&gt;&lt;/h2&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; line-height: 16pt; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;TRAI also said that service providers will be able to charge any amount less than or equal to Rs 19.&lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; line-height: 16pt; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;MNP will be introduced in India, in two phases. It will first be introduced in Indian metros and Category A telecom zones, on December 31, 2009, and subsequently in the rest of the country, by March 20, 2010.&lt;/span&gt;&lt;/div&gt;&lt;h2 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666666; font-style: italic; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;How to change mobile operator under MNP&lt;/span&gt;&lt;/h2&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; line-height: 16pt; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Subscribers must pay up all pending bills before making an application for MNP. The porting fees is to be paid to the new operator. No payment is required to be given to the operator you are leaving. TRAI said that porting between mobile operators should be accomplished within four days. There’s a catch though. You cannot switch operator and retain number if you have been with that operator for less than three months. Prepaid users must remember that their balance talk time will disappear if they switch to a different operator. The maximum downtime between deactivating the existing connection and starting the new connection will be a maximum of two hours.&lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; line-height: 16pt; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;As for Dipping charges, the charge will be mutually agreed upon between a service provider or international long distance provider to the MNP service provider.&lt;/span&gt;&lt;/div&gt;&lt;div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 16pt; margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; vertical-align: baseline; white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;Frequently Asked Questions&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-weight: bold; line-height: 20px;"&gt;&lt;span class="Apple-style-span" style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;What is&amp;nbsp;mobile number portability?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #3f3f3f; font-weight: bold; line-height: 20px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #3f3f3f; line-height: 20px;"&gt;M&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #3f3f3f; line-height: 20px;"&gt;obile number portability a&lt;/span&gt;llows subscriber to opt for service provider of his choice but retain his mobile number. The number gets ported to the new provider.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-weight: bold; line-height: 20px;"&gt;&lt;span class="Apple-style-span" style="color: red; font-family: Arial, Helvetica, sans-serif;"&gt;Does it allow a technology switch?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #3f3f3f; font-weight: bold; line-height: 20px;"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;Subscriber can stay with same technology, GSM/CDMA. Also change to CDMA or vice versa. Both post-paid &amp;amp; prepaid subscribers can use it.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;How long will it take to port a number?&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;br /&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp;Seven working days. Fifteen days in J&amp;amp;K, North-east .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;How expensive?&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Will cost Rs19, to be collected by new service provider.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Can you retain your number in another city?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
No. You can't change circles.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;How frequently can you&lt;a href="http://sksoftech.blog.com/"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="cursor: pointer;"&gt;switch service providers&lt;/span&gt;&lt;/a&gt;?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
A subscriber must be with a provider for at least three months.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;To switch, send the following text PORT&amp;nbsp;&lt;/span&gt;&lt;space&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;mobile number to 1900.&lt;/span&gt;&amp;nbsp;&lt;/space&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You'll get an eight-digit alphanumeric code and expiry date for it. This is the unique porting code.&lt;br /&gt;
&lt;br /&gt;
Approach service provider you have opted for with unique code. Carry address &amp;amp; ID proof/ photograph/ application form with unique code &amp;amp; mobile number. Complete this process within the expiry date that came with unique code.&lt;br /&gt;
&lt;br /&gt;
Operator will take request to mobile portability clearing house. Clearing house will get your number deactivated from existing provider and activate new one.&lt;br /&gt;
&lt;br /&gt;
You'll then get text from new provider mentioning date &amp;amp; time when phone will go through a no-service period.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-5223870291773222261?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/5223870291773222261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2011/01/mobile-number-portability.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/5223870291773222261?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/5223870291773222261?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2011/01/mobile-number-portability.html' title='Mobile Number Portability'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkUGQX4zfSp7ImA9Wx9WFUU.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-7655954057434727206</id><published>2011-01-20T20:29:00.000-08:00</published><updated>2011-01-20T20:30:20.085-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-20T20:30:20.085-08:00</app:edited><title>हम नागरिक इस देश के !</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_ObKx5HDjp5M/TTkLZ6FBBPI/AAAAAAAAAIw/PaYayo-p5Po/s1600/civic+sense.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_ObKx5HDjp5M/TTkLZ6FBBPI/AAAAAAAAAIw/PaYayo-p5Po/s1600/civic+sense.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;पहले कर्तव्य, फिर अधिकार&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;पूरी दुनिया एक हो चुकी है। आज हम जी रहे है ग्लोबल व‌र्ल्ड में। ऐसे में हमें अपनी सोच को भी विस्तार देना चाहिए। हमें अपने कर्तव्यों को नजर अंदाज नहीं करना चाहिए। आप जिस भी क्षेत्र में है, आपको जो भी जिम्मेदारी मिली है, उसे निभा लीजिए। बस इतना करना ही काफी है एक बेहतर नागरिक बनने के लिए।&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;जिम्मेदारी का अहसास&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;हमारे देश की समृद्ध सभ्यता-संस्कृति की चर्चा दुनिया भर में होती है, लेकिन जब बात सिविक सेंस की आती है, तो हमारी गिनती पीछे क्यों होती है? इस बारे में सोचने का यह सही वक्त है। मेरे खयाल से इसका एक कारण यह है कि अपने अधिकारों के प्रति सजग होने की बात तो हम करते है, लेकिन कर्तव्यों के प्रति उतने सचेत नहीं रहते। इसलिए रूल्स तोड़ने में हमें ज्यादा मलाल नहीं होता। सार्वजनिक संपत्तिका नुकसान होने से हमें तकलीफ नही होती। देश के नागरिक होने के नाते हमें अपने कर्तव्यों हमेशा याद रखने चाहिए। और क्या बस यही एक उपाय है सिविक सेंस को डेवलप करने का। मुझे भरोसा है वह दिन दूर नहीं जब होंगे दुनिया के बेस्ट नागरिक&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;।&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;करनी होगी पहल&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;जब सड़क पर कोई कूड़ा फेंकता है, लाइन तोड़ आगे बढ़कर अपना काम करवा लेता है, तो ऐसी हरकतें खीझ पैदा कर देती हैं। लेकिन क्या केवल ऐसे लोगों से चिढ़कर रह जाने से पैदा हो जाएगा सिविक सेंस? जब मुझे यह बात समझ में आई, तो उस दिन से मुझे सिविक सेंस का महत्व और इसे विकसित करने का सबसे बेहतर तरीका भी पता चला। वह है खुद को सुधार लें, अपनी छोटी-छोटी गलत आदतें छोड़ दें, तो जरूर कुछ बदलाव होगा। मेरी समझ से सिविक सेंस डेवलप करने का एक ही उपाय है कि बातें करने की बजाय पहल करके काम शुरू करें।&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;खुद पर हो भरोसा&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: surekh, arial; font-size: 13px; line-height: 23px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Mangal; font-weight: normal;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="color: black; font-family: surekh, arial; font-size: 13px; line-height: 23px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;दुनिया में हमें काफी सम्मान की नजरों से देखा जाता है, क्योंकि?हर मोर्चे पर हमारी एक अलग पहचान है।?जिधर देखो उधर भारत का नाम है। लेकिन अफसोस जब सिविक सेंस की बात की जाती है, तो भारतीयों को इस मामले में पिछड़ा हुआ समझ लिया जाता है।&lt;/div&gt;&lt;div style="color: black; font-family: surekh, arial; font-size: 13px; line-height: 23px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;मजे की बात यह है कि हममें से ज्यादातर आज भी खुद को भी विदेशियों से पीछे मानते है। इसका तो अर्थ यही है न कि हमारे अंदर आत्मविश्वास की कमी है। हमें यह नहीं सोचना चाहिए कि हम पिछड़े हुए और अभद्र है। यदि हम खुद ही ऐसा सोचने लगेंगे, तो फिर कैसे बन पाएंगे बेहतर नागरिक? आखिर हर काम के लिए खुद पर भरोसा होना तो जरूरी है न।&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-7655954057434727206?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/7655954057434727206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2011/01/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/7655954057434727206?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/7655954057434727206?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2011/01/blog-post.html' title='हम नागरिक इस देश के !'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ObKx5HDjp5M/TTkLZ6FBBPI/AAAAAAAAAIw/PaYayo-p5Po/s72-c/civic+sense.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEAMRXo6eyp7ImA9Wx9WFEw.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-5812280705631269099</id><published>2011-01-18T20:53:00.000-08:00</published><updated>2011-01-18T20:53:04.413-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-18T20:53:04.413-08:00</app:edited><title>What is the difference between 1G,2G,3G &amp; 4G ?</title><content type='html'>&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif; font-size: 13px;"&gt;In 1G, Narrow band analogue wireless network is used, with this we can have the voice calls and can send text messages. These services are provided with circuit switching.Then in case of 2G Narrow Band Wireless Digital Network is used. It brings more clarity to the conversation .Both the 1G and 2G deals with voice calls and has to utilize the maximum bandwidth.In 3G Wide Brand Wireless Network is used with which the clarity increases and gives the perfection as like that of a real conversation. The data are sent through the technology called Packet Switching .Voice calls are interpreted through Circuit Switching.Then with the case of Fourth Generation that is 4G in addition to that of the services of 3G some additional features such as Multi-Media Newspapers, also to watch T.V programs with the clarity as to that of an ordinary T.V. In addition, we can send Data much faster that that of the previous generations.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif; font-size: 13px;"&gt;For more details you can visit below links :-&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif; font-size: 13px;"&gt;&lt;a href="http://www.daniweb.com/forums/thread35959.html"&gt;http://www.daniweb.com/forums/thread35959.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif; font-size: 13px;"&gt;&lt;a href="http://hubpages.com/hub/3G-and-4G-Mobile-Services"&gt;http://hubpages.com/hub/3G-and-4G-Mobile-Services&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://indianblogger.com/understanding-the-generations-1g-2g-3g-and-4g/"&gt;http://indianblogger.com/understanding-the-generations-1g-2g-3g-and-4g&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.channelpartnersonline.com/articles/2007/01/2g-3g-4g-gigi.aspx"&gt;http://www.channelpartnersonline.com/articles/2007/01/2g-3g-4g-gigi.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-5812280705631269099?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/5812280705631269099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2011/01/what-is-difference-between-1g2g3g-4g.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/5812280705631269099?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/5812280705631269099?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2011/01/what-is-difference-between-1g2g3g-4g.html' title='What is the difference between 1G,2G,3G &amp; 4G ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUEGRHwzfip7ImA9Wx9XGU0.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-6842926137590022973</id><published>2011-01-12T23:22:00.000-08:00</published><updated>2011-01-12T23:27:05.286-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-12T23:27:05.286-08:00</app:edited><title>Top 10 Application Security Vulnerabilities in Web.config Files</title><content type='html'>&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;These days, the biggest threat to an organization’s network security comes from its public&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web site and the Web-based applications found there. Unlike internal-only network&lt;/div&gt;&lt;div style="text-align: justify;"&gt;services such as databases—which can be sealed off from the outside via firewalls—a&lt;/div&gt;&lt;div style="text-align: justify;"&gt;public Web site is generally accessible to anyone who wants to view it, making&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application security an issue. As networks have become more secure, vulnerabilities in&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web applications have inevitably attracted the attention of hackers, both criminal and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;recreational, who have devised techniques to exploit these holes. In fact, attacks upon the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web application layer now exceed those conducted at the network level, and can have&lt;/div&gt;&lt;div style="text-align: justify;"&gt;consequences which are just as damaging.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Some enlightened software architects and developers are becoming educated on these&lt;/div&gt;&lt;div style="text-align: justify;"&gt;threats to application security and are designing their Web-based applications with&lt;/div&gt;&lt;div style="text-align: justify;"&gt;security in mind. By "baking in" application security from the start of the development&lt;/div&gt;&lt;div style="text-align: justify;"&gt;process, rather than trying to ”brush it on” at the end, you are much more likely to create&lt;/div&gt;&lt;div style="text-align: justify;"&gt;secure applications that will withstand hackers' attacks. However, even the most&lt;/div&gt;&lt;div style="text-align: justify;"&gt;meticulous and security-aware C# or VB.NET code can still be vulnerable to attack if&lt;/div&gt;&lt;div style="text-align: justify;"&gt;you neglect to secure the Web.config configuration files of your application. Incorrectly&lt;/div&gt;&lt;div style="text-align: justify;"&gt;configured Web-based applications can be just as dangerous as those that have been&lt;/div&gt;&lt;div style="text-align: justify;"&gt;incorrectly coded. To make matters worse, many configuration settings actually default to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;insecure values.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This article lists five of the “worst offenders” of misconfigurations of application security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;that are universally problematic for all ASP.NET Web-based applications. Part two of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;this article will list an additional five misconfigurations that are specifically applicable to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;ASP.NET sites that use Web Forms authentication. So without further ado, let’s get&lt;/div&gt;&lt;div style="text-align: justify;"&gt;started!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;1. Custom Errors Disabled&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When you disable custom errors as shown below, ASP.NET provides a detailed error&lt;/div&gt;&lt;div style="text-align: justify;"&gt;message to clients by default.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;customErrors mode=”Off”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;customErrors mode=”RemoteOnly”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In itself, knowing the source of an error may not seem like a risk to application security,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;but consider this: the more information a hacker can gather about a Web site, the more&lt;/div&gt;&lt;div style="text-align: justify;"&gt;likely it is that he will be able to successfully attack it. An error message can be a gold&lt;/div&gt;&lt;div style="text-align: justify;"&gt;mine of information to an attacker. A default ASP.NET error message lists the specific&lt;/div&gt;&lt;div style="text-align: justify;"&gt;versions of ASP.NET and the .NET framework which are being used by the Web server,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;as well as the type of exception that was thrown. Just knowing which Web-based&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications are used (in this case ASP.NET) compromises application security by telling&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the attacker that the server is running a relatively recent version of Microsoft Windows&lt;/div&gt;&lt;div style="text-align: justify;"&gt;and that Microsoft Internet Information Server (IIS) 6.0 or later is being used as the Web&lt;/div&gt;&lt;div style="text-align: justify;"&gt;server. The type of exception thrown may also help the attacker to profile Web-based&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications; for example, if a SqlException is thrown, then the attacker knows that&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the application is using some version of Microsoft SQL Server.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You can build up application security to prevent such information leakage by modifying&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the mode attribute of the &amp;lt;customErrors&amp;gt; element to On or RemoteOnly. This setting&lt;/div&gt;&lt;div style="text-align: justify;"&gt;instructs Web-based applications to display a nondescript, generic error message when an&lt;/div&gt;&lt;div style="text-align: justify;"&gt;unhandled exception is generated. Another way to circumvent this application security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;issue is to redirect the user to a new page when errors occur by setting the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;defaultRedirect attribute of the &amp;lt;customErrors&amp;gt; element. This approach can&lt;/div&gt;&lt;div style="text-align: justify;"&gt;provide even better application security because the default generic error page still gives&lt;/div&gt;&lt;div style="text-align: justify;"&gt;away too much information about the system (namely, that it's using a Web.config file,&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;which reveals that the server is running ASP.NET).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;2. Leaving Tracing Enabled in Web-Based Applications&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The trace feature of ASP.NET is one of the most useful tools that you can use to ensure&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application security by debugging and profiling your Web-based applications.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Unfortunately, it is also one of the most useful tools that a hacker can use to attack your&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web-based applications if it is left enabled in a production environment.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;trace enabled=”true” localOnly=”false”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;trace enabled=”false” localOnly=”true”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When the &amp;lt;trace&amp;gt; element is enabled for remote users of Web-based applications&lt;/div&gt;&lt;div style="text-align: justify;"&gt;(localOnly="false"), any user can view an incredibly detailed list of recent requests&lt;/div&gt;&lt;div style="text-align: justify;"&gt;to the application simply by browsing to the page trace.axd. If a detailed exception&lt;/div&gt;&lt;div style="text-align: justify;"&gt;message is like a gold mine to a hacker looking to circumvent application security, a trace&lt;/div&gt;&lt;div style="text-align: justify;"&gt;log is like Fort Knox! A trace log presents a wealth of information: the .NET and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;ASP.NET versions that the server is running; a complete trace of all the page methods&lt;/div&gt;&lt;div style="text-align: justify;"&gt;that the request caused, including their times of execution; the session state and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application state keys; the request and response cookies; the complete set of request&lt;/div&gt;&lt;div style="text-align: justify;"&gt;headers, form variables, and QueryString variables; and finally the complete set of server&lt;/div&gt;&lt;div style="text-align: justify;"&gt;variables.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A hacker looking for a way around application security would obviously find the form&lt;/div&gt;&lt;div style="text-align: justify;"&gt;variable histories useful because these might include email addresses that could be&lt;/div&gt;&lt;div style="text-align: justify;"&gt;harvested and sold to spammers, IDs and passwords that could be used to impersonate the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;user, or credit card and bank account numbers. Even the most innocent-looking piece of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;data in the trace collection can be dangerous in the wrong hands. For example, the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;APPL_PHYSICAL_PATH server variable, which contains the physical path of Web-based&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications on the server, could help an attacker perform directory traversal attacks&lt;/div&gt;&lt;div style="text-align: justify;"&gt;against the system.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The best way to prevent a hacker from obtaining trace data from Web-based applications&lt;/div&gt;&lt;div style="text-align: justify;"&gt;is to disable the trace viewer completely by setting the enabled attribute of the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;trace&amp;gt; element to false. If you have to have the trace viewer enabled, either to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;debug or to profile your application, then be sure to set the localOnly attribute of the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;trace&amp;gt; element to true. That allows users to access the trace viewer only from the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web server and disables viewing it from any remote machine, increasing your application&lt;/div&gt;&lt;div style="text-align: justify;"&gt;security.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;3. Debugging Enabled&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Deploying Web-based applications in debug mode is a very common mistake. Virtually&lt;/div&gt;&lt;div style="text-align: justify;"&gt;all Web-based applications require some debugging. Visual Studio 2005 will even&lt;/div&gt;&lt;div style="text-align: justify;"&gt;automatically modify the Web.config file to allow debugging when you start to debug&lt;/div&gt;&lt;div style="text-align: justify;"&gt;your application. And, since deploying ASP.NET applications is as simple as copying the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;files from the development folder into the deployment folder, it’s easy to see how&lt;/div&gt;&lt;div style="text-align: justify;"&gt;development configuration settings can accidentally make it into production,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;compromising application security.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;compilation debug=”true”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;compilation debug=”false”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Like the first two application security vulnerabilities described in this list, leaving&lt;/div&gt;&lt;div style="text-align: justify;"&gt;debugging enabled is dangerous because you are providing inside information to end&lt;/div&gt;&lt;div style="text-align: justify;"&gt;users who shouldn’t have access to it, and who may use it to attack your Web-based&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications. For example, if you have enabled debugging and disabled custom errors in&lt;/div&gt;&lt;div style="text-align: justify;"&gt;your application, then any error message displayed to an end user of your Web-based&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications will include not only the server information, a detailed exception message,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;and a stack trace, but also the actual source code of the page where the error occurred.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Unfortunately, this configuration setting isn't the only way that source code might be&lt;/div&gt;&lt;div style="text-align: justify;"&gt;displayed to the user. Here's a story that illustrates why developers shouldn’t concentrate&lt;/div&gt;&lt;div style="text-align: justify;"&gt;solely on one type of configuration setting to improve application security. In early&lt;/div&gt;&lt;div style="text-align: justify;"&gt;versions of Microsoft’s ASP.NET AJAX framework, some controls would return a stack&lt;/div&gt;&lt;div style="text-align: justify;"&gt;trace with source code to the client browser whenever exceptions occurred. This behavior&lt;/div&gt;&lt;div style="text-align: justify;"&gt;happened whenever debugging was enabled, regardless of the custom error setting in the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;configuration. So, even if you properly configured your Web-based applications to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;display non-descriptive messages when errors occurred, you could still have&lt;/div&gt;&lt;div style="text-align: justify;"&gt;unexpectedly revealed your source code to your end users if you forgot to disable&lt;/div&gt;&lt;div style="text-align: justify;"&gt;debugging.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;To disable debugging, set the value of the debug attribute of the &amp;lt;compilation&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;element to false. This is the default value of the setting, but as we will see in part two&lt;/div&gt;&lt;div style="text-align: justify;"&gt;of this article, it’s safer to explicitly set the desired value rather than relying on the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;defaults to protect application security.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;4. Cookies Accessible through Client-Side Script&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In Internet Explorer 6.0, Microsoft introduced a new cookie property called HttpOnly.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;While you can set the property programmatically on a per-cookie basis, you also can set&lt;/div&gt;&lt;div style="text-align: justify;"&gt;it globally in the site configuration.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;httpCookies httpOnlyCookies=”false”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;httpCookies httpOnlyCookies=”true”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Any cookie marked with this property will be accessible only from server-side code, and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;not to any client-side scripting code like JavaScript or VBScript. This shielding of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookies from the client helps to protect Web-based applications from Cross-Site Scripting&lt;/div&gt;&lt;div style="text-align: justify;"&gt;attacks. A hacker initiates a Cross-Site Scripting (also called CSS or XSS) attack by&lt;/div&gt;&lt;div style="text-align: justify;"&gt;attempting to insert his own script code into the Web page to get around any application&lt;/div&gt;&lt;div style="text-align: justify;"&gt;security in place. Any page that accepts input from a user and echoes that input back is&lt;/div&gt;&lt;div style="text-align: justify;"&gt;potentially vulnerable. For example, a login page that prompts for a user name and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;password and then displays “Welcome back, &amp;lt;username&amp;gt;” on a successful login may be&lt;/div&gt;&lt;div style="text-align: justify;"&gt;susceptible to an XSS attack.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Message boards, forums, and wikis are also often vulnerable to application security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;issues. In these sites, legitimate users post their thoughts or opinions, which are then&lt;/div&gt;&lt;div style="text-align: justify;"&gt;visible to all other visitors to the site. But an attacker, rather than posting about the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;current topic, will instead post a message such as&lt;/div&gt;&lt;div style="text-align: justify;"&gt;“&amp;lt;script&amp;gt;alert(document.cookie);&amp;lt;/script&amp;gt;”. The message board now&lt;/div&gt;&lt;div style="text-align: justify;"&gt;includes the attacker’s script code in its page code—and the browser then interprets and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;executes it for future site visitors. Usually attackers use such script code to try to obtain&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the user’s authentication token (usually stored in a cookie), which they could then use to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;impersonate the user. When cookies are marked with the HttpOnly property, their&lt;/div&gt;&lt;div style="text-align: justify;"&gt;values are hidden from the client, so this attack will fail.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As mentioned earlier, it is possible to enable HttpOnly programmatically on any&lt;/div&gt;&lt;div style="text-align: justify;"&gt;individual cookie by setting the HttpOnly property of the HttpCookie object to true.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;However, it is easier and more reliable to configure the application to automatically&lt;/div&gt;&lt;div style="text-align: justify;"&gt;enable HttpOnly for all cookies. To do this, set the httpOnlyCookies attribute of the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;httpCookies&amp;gt; element to true.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;5. Cookieless Session State Enabled&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In the initial 1.0 release of ASP.NET, you had no choice about how to transmit the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;session token between requests when your Web application needed to maintain session&lt;/div&gt;&lt;div style="text-align: justify;"&gt;state: it was always stored in a cookie. Unfortunately, this meant that users who would&lt;/div&gt;&lt;div style="text-align: justify;"&gt;not accept cookies could not use your application. So, in ASP.NET 1.1, Microsoft added&lt;/div&gt;&lt;div style="text-align: justify;"&gt;support for cookieless session tokens via use of the “cookieless” setting.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;sessionState cookieless=”UseUri”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;sessionState cookieless=”UseCookies”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web applications configured to use cookieless session state now stored the session token&lt;/div&gt;&lt;div style="text-align: justify;"&gt;in the page URLs rather than a cookie. For example, the page URL might change from&lt;/div&gt;&lt;div style="text-align: justify;"&gt;http://myserver/MyApplication/default.aspx to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;http://myserver/MyApplication/(123456789ABCDEFG)/default.aspx. In&lt;/div&gt;&lt;div style="text-align: justify;"&gt;this case, 123456789ABCDEFG represents the current user's session token. A different&lt;/div&gt;&lt;div style="text-align: justify;"&gt;user browsing the site at the same time would receive a completely different session&lt;/div&gt;&lt;div style="text-align: justify;"&gt;token, resulting in a different URL, such as&lt;/div&gt;&lt;div style="text-align: justify;"&gt;http://myserver/MyApplication/(ZYXWVU987654321)/default.aspx.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;While adding support for cookieless session state did improve the usability of ASP.NET&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web applications for users who would not accept cookies, it also had the side effect of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;making those applications much more vulnerable to session hijacking attacks. Session&lt;/div&gt;&lt;div style="text-align: justify;"&gt;hijacking is basically a form of identity theft wherein a hacker impersonates a legitimate&lt;/div&gt;&lt;div style="text-align: justify;"&gt;user by stealing his session token. When the session token is transmitted in a cookie, and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the request is made on a secure channel (that is, it uses SSL), the token is secure.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;However, when the session token is included as part of the URL, it is much easier for a&lt;/div&gt;&lt;div style="text-align: justify;"&gt;hacker to find and steal it. By using a network monitoring tool (also known as a “sniffer”)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;or by obtaining a recent request log, hijacking the user’s session becomes a simple matter&lt;/div&gt;&lt;div style="text-align: justify;"&gt;of browsing to the URL containing the stolen unique session token. The Web application&lt;/div&gt;&lt;div style="text-align: justify;"&gt;has no way of knowing that this new request with session token “123456789ABCDEFG”&lt;/div&gt;&lt;div style="text-align: justify;"&gt;is not coming from the original, legitimate user. It happily loads the corresponding&lt;/div&gt;&lt;div style="text-align: justify;"&gt;session state and returns the response back to the hacker, who has now effectively&lt;/div&gt;&lt;div style="text-align: justify;"&gt;impersonated the user.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The most effective way to prevent these session hijacking attacks is to force your Web&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application to use cookies to store the session token. This is accomplished by setting the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookieless attribute of the &amp;lt;sessionState&amp;gt; element to UseCookies or false. But&lt;/div&gt;&lt;div style="text-align: justify;"&gt;what about the users who do not accept cookies? Do you have to choose between making&lt;/div&gt;&lt;div style="text-align: justify;"&gt;your application available to all users versus ensuring that it operates securely for all&lt;/div&gt;&lt;div style="text-align: justify;"&gt;users? A compromise between the two is possible in ASP.NET 2.0. By setting the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookieless attribute to AutoDetect, the application will store the session token in a&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookie for users who accept them and in the URL for those who won’t. This means that&lt;/div&gt;&lt;div style="text-align: justify;"&gt;only the users who use cookieless tokens will still be vulnerable to session hijacking.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;That's often acceptable, given the alternative—that users who deny cookies wouldn't be&lt;/div&gt;&lt;div style="text-align: justify;"&gt;able to use the application at all. It is ironic that many users disable cookies because of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;privacy concerns when doing so can actually make them more prone to attack.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;Some of the most common and dangerous application security vulnerabilities that exist in&lt;/div&gt;&lt;div style="text-align: justify;"&gt;ASP.NET Web-based applications come not from the C# or VB.NET code that make up&lt;/div&gt;&lt;div style="text-align: justify;"&gt;its pages and service methods, but instead from the XML code that makes up its&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web.config files. Incorrect configurations can open Web sites to application security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;holes such as session hijacking, Cross-Site Scripting attacks, and even allow the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;disclosure of private data to attackers.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;An additional problem is that Web.config files were designed to be changed at any time,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;even after the Web-based applications are in production. A well-intentioned system&lt;/div&gt;&lt;div style="text-align: justify;"&gt;administrator could inadvertently get around application security measures and open the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web site to attack just by modifying the configuration file. And because .NET&lt;/div&gt;&lt;div style="text-align: justify;"&gt;configuration files operate in a hierarchical manner, a single change to the global&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Machine.config file could affect every Web site on the entire network.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Part one of this article listed five of the most serious configuration vulnerabilities that are&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applicable to any ASP.NET Web-based applications. This part will focus on&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authentication and authorization application security issues, and detail another five&lt;/div&gt;&lt;div style="text-align: justify;"&gt;vulnerabilities commonly found in ASP.NET Web-based applications using Forms&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authentication. It will also provide some best practices for application security, including&lt;/div&gt;&lt;div style="text-align: justify;"&gt;locking down your configuration files to ensure that they are not unintentionally modified&lt;/div&gt;&lt;div style="text-align: justify;"&gt;by well-meaning (but uninformed) programmers or administrators.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;6. Cookieless Authentication Enabled&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Just as in the “Cookieless Session State Enabled” vulnerability discussed in part one,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;enabling cookieless authentication in your Web-based applications can lead to session&lt;/div&gt;&lt;div style="text-align: justify;"&gt;hijacking and problems with application security.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms cookieless=”UseUri”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms cookieless=”UseCookies”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When a session or authentication token appears in the request URL rather than in a secure&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookie, an attacker with a network monitoring tool can get around application security,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;easily take over that session, and effectively impersonate a legitimate user. However,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;session hijacking has far more serious consequences for application security after a user&lt;/div&gt;&lt;div style="text-align: justify;"&gt;has been authenticated. For example, online shopping sites generally utilize Web-based&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications that allow users to browse without having to provide an ID and password.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;But when users are ready to make a purchase, or when they want to view their order&lt;/div&gt;&lt;div style="text-align: justify;"&gt;status, they have to login and be authenticated by the system. After logging in, sites&lt;/div&gt;&lt;div style="text-align: justify;"&gt;provide access to more sensitive data, such as a user's order history, billing address, and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;credit card number. Attackers hijacking this user’s session before authentication can't&lt;/div&gt;&lt;div style="text-align: justify;"&gt;usually obtain much useful information. But if the attacker hijacks the session after&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authentication, all that sensitive information could be compromised.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The best way to prevent session hijacking with Web-based applications is to disable&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookieless authentication and force the use of cookies for storing authentication tokens.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This application security measure is added by changing the cookieless attribute of the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms&amp;gt; element to the value UseCookies.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;7. Failure to Require SSL for Authentication Cookies&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web-based applications use the Secure Sockets Layer (SSL) protocol to encrypt data&lt;/div&gt;&lt;div style="text-align: justify;"&gt;passed between the Web server and the client. Using SSL for application security means&lt;/div&gt;&lt;div style="text-align: justify;"&gt;that attackers using network sniffers will not be able to interpret the exchanged data.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Rather than seeing plaintext requests and responses, they will see only an indecipherable&lt;/div&gt;&lt;div style="text-align: justify;"&gt;jumble of meaningless characters.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You can require the forms authentication cookie from your Web-based applications to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;use SSL by setting the requireSSL attribute of the &amp;lt;forms&amp;gt; element to true.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms requireSSL=”false”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms requireSSL=”true”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The previous section discussed the importance of transmitting the authentication token in&lt;/div&gt;&lt;div style="text-align: justify;"&gt;a cookie, rather than embedding it in the request URL. However, disabling cookieless&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authentication is just the first step towards securing the authentication token. Unless&lt;/div&gt;&lt;div style="text-align: justify;"&gt;requests made to the Web server are encrypted, a network sniffer will still be able to read&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the authentication token from the request cookie. An attacker would still be able to hijack&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the user’s session.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;At this point, you might be wondering why it is necessary with application security to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;disable cookieless authentication, since it is very inconvenient for users who won’t accept&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookies, and seeing as how the request still has to be sent over SSL. The answer is that&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the request URL is often persisted regardless of whether or not it was sent via SSL. Most&lt;/div&gt;&lt;div style="text-align: justify;"&gt;major browsers save the complete URL in the browser history cache. If the history cache&lt;/div&gt;&lt;div style="text-align: justify;"&gt;were to be compromised, the user’s login credentials would be as well. Therefore, to truly&lt;/div&gt;&lt;div style="text-align: justify;"&gt;secure the authentication token, you must require the authentication token to be stored in&lt;/div&gt;&lt;div style="text-align: justify;"&gt;a cookie, and use SSL to ensure that the cookie be transmitted securely.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;By setting the requireSSL attribute of the &amp;lt;forms&amp;gt; element to true, ASP.NET Webbased&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications will use a secure connection when transmitting the authentication&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookie to the Web server. Note that IIS requires additional configuration steps to support&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SSL. You can find instructions to configure SSL for IIS on MSDN&lt;/div&gt;&lt;div style="text-align: justify;"&gt;(http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/56bdf9&lt;/div&gt;&lt;div style="text-align: justify;"&gt;77-14f8-4867-9c51-34c346d48b04.mspx?mfr=true).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;8. Sliding Expiration Used&lt;/div&gt;&lt;div style="text-align: justify;"&gt;All authenticated ASP.NET sessions have a timeout interval to protect the application&lt;/div&gt;&lt;div style="text-align: justify;"&gt;security. The default timeout value is 30 minutes. So, 30 minutes after a user first logs&lt;/div&gt;&lt;div style="text-align: justify;"&gt;into any of these Web-based applications, he will automatically be logged out and forced&lt;/div&gt;&lt;div style="text-align: justify;"&gt;to re-authenticate his credentials.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms slidingExpiration=”true”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms slidingExpiration=”false”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The slidingExpiration setting is an application security measure used to reduce risk&lt;/div&gt;&lt;div style="text-align: justify;"&gt;to Web-based applications in case the authentication token is stolen. When set to false,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the specified timeout interval becomes a fixed period of time from the initial login, rather&lt;/div&gt;&lt;div style="text-align: justify;"&gt;than a period of inactivity. Attackers using a stolen authentication token have, at&lt;/div&gt;&lt;div style="text-align: justify;"&gt;maximum, only the specified length of time to impersonate the user before the session&lt;/div&gt;&lt;div style="text-align: justify;"&gt;times out. Because typical attackers of these Web-based applications have only the token,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;and don't really know the user's credentials, they can't log back in as the legitimate user,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;so the stolen authentication token is now useless and the application security threat is&lt;/div&gt;&lt;div style="text-align: justify;"&gt;mitigated. When sliding expiration is enabled, as long as an attacker makes at least one&lt;/div&gt;&lt;div style="text-align: justify;"&gt;request to the system every 15 minutes (or half of the timeout interval), the session will&lt;/div&gt;&lt;div style="text-align: justify;"&gt;remain open indefinitely. This gives attackers more opportunities to steal information and&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cause other mischief in Web-based applications.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;To avoid this application security issue altogether, you can disable sliding expiration by&lt;/div&gt;&lt;div style="text-align: justify;"&gt;setting the slidingExpiration attribute of the &amp;lt;forms&amp;gt; element to false.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;9. Non-Unique Authentication Cookie Used&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Over the last few sections, I hope I have successfully demonstrated the importance of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application security and of storing your application’s authentication token in a secure&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookie value. But a cookie is more than just a value; it is a name-value pair. As strange as&lt;/div&gt;&lt;div style="text-align: justify;"&gt;it seems, an improperly chosen cookie name can create an application security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;vulnerability just as dangerous as an improperly chosen storage location.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms name=”.ASPXAUTH”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms name=”{abcd1234…}”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The default value for the name of the authentication cookie is .ASPXAUTH. If you have&lt;/div&gt;&lt;div style="text-align: justify;"&gt;only one Web-based application on your server, then .ASPXAUTH is a perfectly secure&lt;/div&gt;&lt;div style="text-align: justify;"&gt;choice for the cookie name. In fact, any choice would be secure. But, when your server&lt;/div&gt;&lt;div style="text-align: justify;"&gt;runs multiple ASP.NET Web-based applications, it becomes critical to assign a unique&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authentication cookie name to each application. If the names are not unique, then users&lt;/div&gt;&lt;div style="text-align: justify;"&gt;logging into any of the Web-based applications might inadvertently gain access to all of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;them. For example, a user logging into the online shopping site to view his order history&lt;/div&gt;&lt;div style="text-align: justify;"&gt;might find that he is now able to access the administration application on the same site&lt;/div&gt;&lt;div style="text-align: justify;"&gt;and change the prices of the items in his shopping cart.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The best way to ensure that all Web-based applications on your server have their own set&lt;/div&gt;&lt;div style="text-align: justify;"&gt;of authorized users is to change the authentication cookie name to a unique value.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Globally Unique Identifiers (GUIDs) are excellent choices for application security since&lt;/div&gt;&lt;div style="text-align: justify;"&gt;they are guaranteed to be unique. Microsoft Visual Studio helpfully includes a tool that&lt;/div&gt;&lt;div style="text-align: justify;"&gt;will automatically generate a GUID for you. You can find this tool in the Tools menu&lt;/div&gt;&lt;div style="text-align: justify;"&gt;with the command name “Create GUID”. Copy the generated GUID into the name&lt;/div&gt;&lt;div style="text-align: justify;"&gt;attribute of the &amp;lt;forms&amp;gt; element in the configuration file.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;10. Hardcoded Credentials Used&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Vulnerable configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;credentials&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;…&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/credentials&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/forms&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secure configuration:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode=”Forms”&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/forms&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A fundamental difficulty of creating software is that the environment in which the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application will be deployed is usually not the same environment in which it is created. In&lt;/div&gt;&lt;div style="text-align: justify;"&gt;a production environment, the operating system may be different, the hardware on which&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the application runs may be more or less powerful, and test databases are replaced with&lt;/div&gt;&lt;div style="text-align: justify;"&gt;live databases. This is an issue for creating Web-based applications that require&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authentication because developers and administrators often use test credentials to test the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application security. This begs the question: Where do the test credentials come from?&lt;/div&gt;&lt;div style="text-align: justify;"&gt;For convenience, to avoid forcing developers from spending time on creating a credential&lt;/div&gt;&lt;div style="text-align: justify;"&gt;store used solely for test purposes (and which would subsequently be discarded when the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application went to production), Microsoft added a section to the Web.config file that you&lt;/div&gt;&lt;div style="text-align: justify;"&gt;can use to quickly add test users to Web-based applications. For each test user, the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;developer adds an element to the configuration file with the desired user ID and password&lt;/div&gt;&lt;div style="text-align: justify;"&gt;as shown below:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;authentication mode="Forms"&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;forms&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;credentials&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;user name="bob" password="bob"/&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;user name="jane" password="Elvis"/&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/credentials&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/forms&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/authentication&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;While undeniably convenient for development purposes, this was never intended for use&lt;/div&gt;&lt;div style="text-align: justify;"&gt;in a production environment. Storing login credentials in plaintext in a configuration file&lt;/div&gt;&lt;div style="text-align: justify;"&gt;is simply not secure. Anyone with read access to the Web.config file could access the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;authenticated Web application. It is possible to store the SHA-1 or MD5 hash of the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;password value, rather than storing the password in plaintext. This is somewhat better,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;but it is still not a secure solution. Using this method, the user name is still not encrypted.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;First, providing a known user name to a potential attacker makes it easier to perform a&lt;/div&gt;&lt;div style="text-align: justify;"&gt;brute force attack against the system. Second, there are many reverse-lookup databases of&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SHA-1 and MD5 hash values available on the Internet. If the password is simple, such as&lt;/div&gt;&lt;div style="text-align: justify;"&gt;a word found in a dictionary, then it is almost guaranteed to be found in one of these hash&lt;/div&gt;&lt;div style="text-align: justify;"&gt;dictionaries.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The most secure way to store login credentials is to not store them in the configuration&lt;/div&gt;&lt;div style="text-align: justify;"&gt;file. Remove the &amp;lt;credentials&amp;gt; element from your Web.config files in production&lt;/div&gt;&lt;div style="text-align: justify;"&gt;applications.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You’re Not Out of the Woods Yet&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now that you’ve finished reading the top-ten list, and you've checked your configuration&lt;/div&gt;&lt;div style="text-align: justify;"&gt;settings, your applications are secure forever, right? Not just yet. Web.config files operate&lt;/div&gt;&lt;div style="text-align: justify;"&gt;in a hierarchical inheritance manner. Every Web.config file inherits values from any&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Web.config file in a parent directory. That Web.config file in turn inherits values from&lt;/div&gt;&lt;div style="text-align: justify;"&gt;any Web.config file in its parent directory, and so on. All Web.config files on the system&lt;/div&gt;&lt;div style="text-align: justify;"&gt;inherit from the global configuration file called Machine.config located in the .NET&lt;/div&gt;&lt;div style="text-align: justify;"&gt;framework directory. The effect of this is that the runtime behavior of your application&lt;/div&gt;&lt;div style="text-align: justify;"&gt;can be altered simply by modifying a configuration file in a higher directory.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This can sometimes have unexpected consequences. A system administrator might make&lt;/div&gt;&lt;div style="text-align: justify;"&gt;a change in a configuration file in response to a problem with a completely separate&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application, but that change might create a security vulnerability in your application. For&lt;/div&gt;&lt;div style="text-align: justify;"&gt;example, a user might report that he is not able to access the application without enabling&lt;/div&gt;&lt;div style="text-align: justify;"&gt;cookies in his browser. The administrator, trying to be helpful, modifies the global&lt;/div&gt;&lt;div style="text-align: justify;"&gt;configuration file to allow cookieless authentication for all applications.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;To keep your application-specific settings from being unexpectedly modified, the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;solution is to never rely on default setting values. For example, debugging is disabled by&lt;/div&gt;&lt;div style="text-align: justify;"&gt;default in configuration files. If you’re examining the configuration file for your&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application and you notice that the debug attribute is blank, you might assume that&lt;/div&gt;&lt;div style="text-align: justify;"&gt;debugging is disabled. But it may or may not be disabled—the applied value depends on&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the value in parent configuration settings on the system. The safest choice is to always&lt;/div&gt;&lt;div style="text-align: justify;"&gt;explicitly set security-related values in your application’s configuration.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Ultimately, securing a Web application requires the efforts and diligence of many&lt;/div&gt;&lt;div style="text-align: justify;"&gt;different groups, from quality assurance to security operations. However, the developer&lt;/div&gt;&lt;div style="text-align: justify;"&gt;who codes the application itself has an inherent responsibility to instill security into the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;application from the beginning of the development process. By making securityconscious&lt;/div&gt;&lt;div style="text-align: justify;"&gt;decisions from the beginning, developers can create applications that users can&lt;/div&gt;&lt;div style="text-align: justify;"&gt;trust with their confidential information and that are capable of withstanding attacks&lt;/div&gt;&lt;div style="text-align: justify;"&gt;launched by hackers. As I’ve tried to show here, sometimes that process can be as simple&lt;/div&gt;&lt;div style="text-align: justify;"&gt;as making the right decisions when configuring your application.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;About the Author&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Bryan Sullivan is a development manager at SPI Dynamics, a Web application security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;products company. Bryan manages the DevInspect and QAInspect Web security&lt;/div&gt;&lt;div style="text-align: justify;"&gt;products, which help programmers maintain application security throughout the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;development and testing process. He has a bachelor’s degree in mathematics from&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Georgia Tech and 12 years of experience in the information technology industry. Bryan&lt;/div&gt;&lt;div style="text-align: justify;"&gt;is currently coauthoring a book with noted security expert Billy Hoffman on Ajax&lt;/div&gt;&lt;div style="text-align: justify;"&gt;security, which will be published in summer 2007 by Addison-Wesley.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-6842926137590022973?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/6842926137590022973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2011/01/top-10-application-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/6842926137590022973?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/6842926137590022973?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2011/01/top-10-application-security.html' title='Top 10 Application Security Vulnerabilities in Web.config Files'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkIESHw7fCp7ImA9Wx9QEUU.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-731985564638315143</id><published>2010-12-24T03:01:00.000-08:00</published><updated>2010-12-24T03:01:49.204-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-12-24T03:01:49.204-08:00</app:edited><title>Merry Christmas!</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_ObKx5HDjp5M/TRR9DKTXfXI/AAAAAAAAAIc/IA3CKji_iJI/s1600/happy-christmas.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" n4="true" src="http://2.bp.blogspot.com/_ObKx5HDjp5M/TRR9DKTXfXI/AAAAAAAAAIc/IA3CKji_iJI/s320/happy-christmas.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;We wish you a Merry Christmas,&lt;br /&gt;
&lt;br /&gt;
We wish you a Merry Christmas, &lt;br /&gt;
We wish you a Merry Christmas, &lt;br /&gt;
And a Happy New Year!&lt;br /&gt;
Good tidings we bring&lt;br /&gt;
&lt;br /&gt;
To you and your kin; &lt;br /&gt;
Good tidings for Christmas And a Happy New Year!&lt;br /&gt;
Now bring us some figgy pudding,&lt;br /&gt;
&lt;br /&gt;
Now bring us some figgy pudding, &lt;br /&gt;
Now bring us some figgy pudding, &lt;br /&gt;
And bring some right here!&lt;br /&gt;
Good tidings we bring&lt;br /&gt;
&lt;br /&gt;
To you and your kin; &lt;br /&gt;
Good tidings for Christmas &lt;br /&gt;
And a Happy New Year!&lt;br /&gt;
For we all like a figgy pudding,&lt;br /&gt;
&lt;br /&gt;
We all like a figgy pudding, &lt;br /&gt;
We all like a figgy pudding, &lt;br /&gt;
So bring it out here!&lt;br /&gt;
Good tidings we bring&lt;br /&gt;
&lt;br /&gt;
To you and your kin; &lt;br /&gt;
Good tidings for Christmas &lt;br /&gt;
And a Happy New Year!&lt;br /&gt;
And we won't go till we've got some,&lt;br /&gt;
&lt;br /&gt;
We won't go till we've got some, &lt;br /&gt;
We won't go till we've got some, &lt;br /&gt;
So bring some right here!&lt;br /&gt;
Good tidings we bring&lt;br /&gt;
&lt;br /&gt;
To you and your kin; &lt;br /&gt;
Good tidings for Christmas &lt;br /&gt;
And a Happy New Year!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-731985564638315143?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/731985564638315143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2010/12/merry-christmas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/731985564638315143?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/731985564638315143?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2010/12/merry-christmas.html' title='Merry Christmas!'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ObKx5HDjp5M/TRR9DKTXfXI/AAAAAAAAAIc/IA3CKji_iJI/s72-c/happy-christmas.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DE8GR3c4fCp7ImA9Wx9RGU0.&quot;'><id>tag:blogger.com,1999:blog-506899590147169236.post-633485138546764499</id><published>2010-12-20T20:47:00.000-08:00</published><updated>2010-12-20T20:47:06.934-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-12-20T20:47:06.934-08:00</app:edited><title>Wildlife In India</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_ObKx5HDjp5M/TRAxPMsmcTI/AAAAAAAAAIQ/R9fyKaERP7w/s1600/alephantsafaris-assam.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="228" n4="true" src="http://4.bp.blogspot.com/_ObKx5HDjp5M/TRAxPMsmcTI/AAAAAAAAAIQ/R9fyKaERP7w/s320/alephantsafaris-assam.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; India is home to a rich diversity of wildlife supplemented by an equally rich variety of flora and fauna. The sight and sounds of a majestic elephant, a peacock’s dance, the stride of a camel, the roar of a tiger are unparalleled experiences in themselves. Watching birds and animals in their natural habitats is an experience in itself. &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_ObKx5HDjp5M/TRAvqKm77YI/AAAAAAAAAIA/4mg3mTcU0gs/s1600/bandhavgarh.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" n4="true" src="http://4.bp.blogspot.com/_ObKx5HDjp5M/TRAvqKm77YI/AAAAAAAAAIA/4mg3mTcU0gs/s1600/bandhavgarh.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The country offers immense opportunities for wildlife tourism. The immense heritage of wildlife in India comprises of more than 70 national parks and about 400 wildlife sanctuaries including the bird sanctuaries. &lt;br /&gt;
A paradise for the nature lovers, these forest areas are also crucial for the conversation of the endangered species like the Leopard, Lion, Asiatic Elephant, the Bengal tiger and Siberian Crane. Spread across the length and breadth of India, these reserves and forest areas, right from the Ranthambore National Park in Rajasthan to the Hazaribagh Wildlife Sanctuary in Bihar, from the foothills of Himalayas, the Jim Corbett National Park to six national parks in Andaman; the Indian Wildlife circuit is an Incredible treat, unmatched by any other experience. &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Elephant, Deer, Panther, Wild buffalo, Wild ass, the one horned Rhinoceros, Porcupine, Snow leopards etc are some of the animals you can sport in The Himalayan region. &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_ObKx5HDjp5M/TRAv4ArCUtI/AAAAAAAAAIE/2rkxryHQT9g/s1600/corbett.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" n4="true" src="http://2.bp.blogspot.com/_ObKx5HDjp5M/TRAv4ArCUtI/AAAAAAAAAIE/2rkxryHQT9g/s1600/corbett.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; India harbours eighty percent of the entire population of the one horned rhinoceros in the world. The Kaziranga Game Sanctuary is an ideal habitat for the rhino and a popular destination with the naturalists and environmentalists as well as the wildlife traveller. &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Great Indian Bustard and blackbuck of the Karera Sanctuary also attract a lot of tourists. The Madhav National Park originally called the Shivpuri National Park is another rich habitat for the wildlife in close proximity to the historical town of Gwalior and being close to a often visited cultural and heritage destination enjoys its fare share of tourism inflow. The Corbett National Park one of the most popular National Parks in the northern region for the wildlife enthusiast as well as the holiday makers is changing the way wildlife tourism. These National Parks and Wildlife Sanctuaries are promoters of wildlife tourism in India. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_ObKx5HDjp5M/TRAv_-E1ANI/AAAAAAAAAII/Sya3NibhwTU/s1600/kanha-park.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" n4="true" src="http://3.bp.blogspot.com/_ObKx5HDjp5M/TRAv_-E1ANI/AAAAAAAAAII/Sya3NibhwTU/s1600/kanha-park.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; India has its fair share of Tiger Reserves. India’s National Animal, the tiger happens to be a symbol of strength and speed. India boasts of two-dozen Tiger Reserves. The fastest mammal on Earth, the tiger happens to be the joy and pride of India. The Royal Bengal tiger is amongst the most majestic species of the tiger. Sixty percent of the total population of the wild tigers in the world resides in India. Amongst the best-known tiger reserves in India is the Bandhavgarh in Madhya Pradesh. It is often referred to as the crown in the wildlife heritage of India. Tourists at Bandhavgarh can spot Royal Bengal Tigers, cheetals, leopard, gaur, sambhar, and many more faunal species. The highly successful Project Tiger has shown once again that man can only undo in small ways the loss and destruction of natural habitat due to continuous growth and expansion of the population. &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Indian wildlife has its share of native birds along with the migratory birds. Several hundred species of birds can be spotted across India. The Himalayan region is well known to be the natural habitat for the Pheasant, griffon vulture and ravens. The Keoladeo Ghana National Park popularly known as the Bharatpur Bird Sanctuary in the Indian state of Rajasthan, in close proximity of Delhi, is home to indigenous water birds, waterside birds, migratory water birds, land migratory birds, and domestic land species. Tourists from far and wide are attracted to the Bird Sanctuary. At the Dudhwa wildlife reserve migratory birds like Egrets, herons, storks and cormorants share space with the ducks, gees and teals. The region of Andaman is home for the rare species of birds like the Narcondum hornbill, Nicobar Pigeon and the Megapode.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/506899590147169236-633485138546764499?l=aipls.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aipls.blogspot.com/feeds/633485138546764499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aipls.blogspot.com/2010/12/wildlife-in-india.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/633485138546764499?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/506899590147169236/posts/default/633485138546764499?v=2'/><link rel='alternate' type='text/html' href='http://aipls.blogspot.com/2010/12/wildlife-in-india.html' title='Wildlife In India'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/07485187101119474103</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='14367069470143866113'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ObKx5HDjp5M/TRAxPMsmcTI/AAAAAAAAAIQ/R9fyKaERP7w/s72-c/alephantsafaris-assam.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>