Hey guy. I'm a new beginner in C++. I'm have some problem with my new code I have just written. I try to draw a triangles with from the characters "*". But it isn't work like I want. Here is it.
`#include <iostream>
using namespace
/* Draw a triangles */
int main() {
int a, b, c, d, e, f;
Cout<<"Enter a";
cin>>a;
cout<<"Enter b";
cin>>b;
c=(b/2)+1;
{for (d=0, d<b,d+1)
if (d=c)
cout<<"*";
else
cout<<" ";}
endl;
{for (e=0, e<(a-1), e++)
{for (f=0,f<b,f++)
if (f=(c-e))
cout<<"*";
else cout <<" ";}
endl}
return 0;
`
The error in line 4 said "expected identifier before 'int'. And in line 6 and 7 it said ""Cout"(or "cin")wa not declaired in this scope. Please help me with it.