Hello, I am new to c++ and attempting the for command. This is my code
#include<iostream>
#include<string>
int main()
{
for (int x=1; x<=10; x++)
{
cout <<"Hello";
}
}
but the error : undeclared identifier comes up for cout.
I have tried other commands such as cin but none of them works inside the brackets.( For{})
Please help thanks.