C++ Unlimited Stars Printing Program with source code:
Output of Stars Pattern:

Star Pattern Source Code:
// for more codes visit: www.sarmadzia.com
#include <iostream>
using namespace std;
int main()
{
    int i,j,rows;
    cout<<"http://www.sarmadzia.com/ \n";
    cout<<"Enter the number of Star rows: ";
    cin>>rows;
    for(i=1;i<=rows;++i)
    {
        for(j=1;j<=i;++j)
        {
           cout<<"* ";
        }
        cout<<"\n";
    }
    return 0;
}

Post a Comment Blogger

 
Top