Computer Science, asked by saurabhmandal65, 4 months ago

which program has no syntax error


1. #cout my first program in c++
{
//cout>> "I am payal";
return 0;
}
2. //my first program in C++
{
cout<<"I am payal";
return 0;
}

Answers

Answered by BetteRthenUhh
1

Explanation:

The traceback here is very helpful, with the caret pointing right to the problem character. You can clear up this invalid syntax in Python by switching out the semicolon for a colon. Here, once again, the error message is very helpful in telling you exactly what is wrong with the line.

Similar questions