top of page

#include <iostream>

#include <fstream>

using namespace std;

 

ofstream fout("bradut.txt");

int main()

{

    cout<<"          *           "<<endl;

    cout<<"         ***          "<<endl;

    cout<<"        *****         "<<endl;

    cout<<"       *******        "<<endl;

    cout<<"      *********       "<<endl;

    cout<<"          *           "<<endl;

    fout<<"          *           "<<endl;

    fout<<"         ***          "<<endl;

    fout<<"        *****         "<<endl;

    fout<<"       *******        "<<endl;

    fout<<"      *********       "<<endl;

    fout<<"          *           "<<endl;

}

bottom of page