<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.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:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D0EERHcyeCp7ImA9WhRUEEQ.&quot;"><id>tag:blogger.com,1999:blog-2822503414907371697</id><updated>2012-01-20T13:40:05.990-08:00</updated><title>Basic C++ Programming</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://cplusprogramming.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://cplusprogramming.blogspot.com/" /><author><name>Faiz Ul Hassan Shah</name><uri>https://profiles.google.com/117845289481281349530</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh3.googleusercontent.com/-89O94ferPWo/AAAAAAAAAAI/AAAAAAAAAQA/YYL-I1mSKe4/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/BasicCProgramming" /><feedburner:info uri="basiccprogramming" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DUYFRHs4cCp7ImA9WhRVGUw.&quot;"><id>tag:blogger.com,1999:blog-2822503414907371697.post-525364607255497045</id><published>2012-01-18T12:05:00.000-08:00</published><updated>2012-01-18T12:05:15.538-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-18T12:05:15.538-08:00</app:edited><title>A C++ Prgramme that will print a polygon of stars.</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://2.bp.blogspot.com/-FtWESlVbuec/Txcla163B0I/AAAAAAAAAGQ/dF0UDhWrOVE/s1600/Polygon.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="236" src="http://2.bp.blogspot.com/-FtWESlVbuec/Txcla163B0I/AAAAAAAAAGQ/dF0UDhWrOVE/s320/Polygon.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Out put will be like above stars:&lt;br /&gt;
&lt;br /&gt;
Here is the code.&lt;br /&gt;
&lt;br /&gt;
#include&amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int i, j, n=40;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=1; i&amp;lt;=40; i=i+2)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;setw(n);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n--;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(j=1; j&amp;lt;=i; j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;"*";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system("pause");&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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/2822503414907371697-525364607255497045?l=cplusprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3jflUYivczHAA5rtzmuNs3mJH5s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3jflUYivczHAA5rtzmuNs3mJH5s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3jflUYivczHAA5rtzmuNs3mJH5s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3jflUYivczHAA5rtzmuNs3mJH5s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/BasicCProgramming/~4/tmEizexOrUo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cplusprogramming.blogspot.com/feeds/525364607255497045/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://cplusprogramming.blogspot.com/2012/01/c-prgramme-that-will-print-polygon-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2822503414907371697/posts/default/525364607255497045?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2822503414907371697/posts/default/525364607255497045?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BasicCProgramming/~3/tmEizexOrUo/c-prgramme-that-will-print-polygon-of.html" title="A C++ Prgramme that will print a polygon of stars." /><author><name>Faiz Ul Hassan Shah</name><uri>https://profiles.google.com/117845289481281349530</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh3.googleusercontent.com/-89O94ferPWo/AAAAAAAAAAI/AAAAAAAAAQA/YYL-I1mSKe4/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-FtWESlVbuec/Txcla163B0I/AAAAAAAAAGQ/dF0UDhWrOVE/s72-c/Polygon.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://cplusprogramming.blogspot.com/2012/01/c-prgramme-that-will-print-polygon-of.html</feedburner:origLink></entry></feed>

