Monday, December 17, 2012

STAR PRINTING 3 IN C++


#include<iostream.h>
void main()
{
int count,i, n=10;
for(count=0;count<=n;count++)
{
for(int j=10; j>count;j--)
{
cout<<" ";
}
for(i=0; i<count;i++)
{
cout<<"*";
}
cout<<endl;
}
}
/*
output
*/

No comments: