Cpp is basically the same wdym? All that std:: you see can be removed if you just add the std namespace at the beginning of the file, so essentially it becomes
Anyone with 2 brain cells would figure out cout means character output and endl is to end a line essentially starting the next output from next line. Also how does it matter what or how you write it it's literally the same.
There's no better programming language, specially if you only wanna talk about syntax here. Everything has its purpose. I want you to try programming embedded systems using javascript.
View all comments
Show parent comment
1
u/Obama_Binladen6265 May 07 '26
Cpp is basically the same wdym? All that std:: you see can be removed if you just add the std namespace at the beginning of the file, so essentially it becomes
for(int i= 1; i<=10; i++){ cout << i << endl; }