#include <iostream.h>
#include <conio.h>
void star_printer_function(int a);
void main()
{
clrscr(); // paak kardane safheh
star_printer_function(1);
star_printer_function(2);
star_printer_function(3);
star_printer_function(4);
star_printer_function(5);
star_printer_function(6);
getch(); // baraye entezaar baraye gereftene kelidii
}
void star_printer_function(int a)
{
for (int i=1;i<=a;i++) cout<<"*";
cout<<endl;
}
#include <iostream.h>
#include <conio.h>
void star_printer_function(int a);
void main()
{
clrscr(); // paak kardane safheh
for (int j=1;j<=6;j++)
star_printer_function(j);
getch(); // baraye entezaar baraye gereftene kelidii
}
void star_printer_function(int a)
{
for (int i=1;i<=a;i++) cout<<"*";
cout<<endl;
}