sapin

Write your question here.
hello i want to creat a Christmas tree using c++ but it does not work what's my problem?

#include <iostream> // Fonctions d’entrées-sortie

using namespace std ;

void main()
{
int i,j;
for(i=1;i<=8;i++);{
for(j=0;j<10-i;j++);{
cout<<(" ");}
for(j=0;j<(2*i-1);j++);{
cout<<("*");




}cout<<"\n";

}
}
Last edited on
Topic archived. No new replies allowed.