Print a statement on console with out using a semicolon at the end of if statement. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Print a statement on console with out using a semicolon at the end of if statement.

if we want to print something on console we will use cout<<"with semi colon"; i don'twant that semi colon at last but i need output on console

12th Mar 2017, 12:03 PM
Swamy Kanuri
Swamy Kanuri - avatar
1 Answer
+ 1
Try this: if (cout << "without semicolon") {}
12th Mar 2017, 5:40 PM
Igor B
Igor B - avatar