Can we Print message without using ; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we Print message without using ;

Can we Print message without using semicolon in c++

27th Nov 2016, 10:12 PM
Sonu Baghel
Sonu Baghel - avatar
2 Answers
+ 6
#include <iostream> int main() { while (std::cout << "Hello" << std::endl){} }
27th Nov 2016, 10:21 PM
Tamra
Tamra - avatar
+ 1
in javascript only out of these you can but then before putting another statement you wlhave to change line
28th Nov 2016, 2:21 AM
Sandeep Chatterjee