C++ For Loop_1.4

#include 
using namespace std;
int main (void)
{
    int i,j;
    freopen("out.txt","w",stdout);
    for(i=1;i<=5;i++)
    {
        for(j=9;j>=i+i-1;j--)
        cout<<"*";
        cout<<"\n";
    }
}


The Output is Given Below:
*********
*******
*****
***
*

0 comments:

Post a Comment