I am trying to make a program that prints a certain pattern of stars using for statements and cannot figure out what is wrong with that I have so far. Everytime I fix one of my errors, more errors come up.
int col = 0;
int row = 0;
for(row<10);
{
if(col<10);
continue
else
print("\n"; col=0; row++;)
}
for
{ if(col<row; col++)
printf(" ");
else
printf("*");
}
You need to deal clearly with the c++ syntaxis (for loops, if statements).
int col = 0;
int row = 0;
void main(){
for(row=0;row<10;row++){
& if(col<10)
& continue;
& else {
cout<<"\n";
& col=0;
& row++;
& }
}
for("put the arguments")
{
& if(col<row) {
& col++;
& printf("="" ");
& }
& else
& printf("*");
}