Write a program to print hello world without using semi colon(;)? LET'S SEE HOW MANY SUCH CODES ARE POSSIBLE. I KNOW 1 No Google | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Write a program to print hello world without using semi colon(;)? LET'S SEE HOW MANY SUCH CODES ARE POSSIBLE. I KNOW 1 No Google

12th Jul 2017, 5:54 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
21 Answers
13th Jul 2017, 2:37 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 8
Python : print("Hello world") Ruby : puts "Hello world" Assembly: section .text msg db "Hello world",10 section .data global _start _start: mov eax 4 mov ebx 1 mov ecx msg mov edx 12 int 80h mov eax 1 int 80h
12th Jul 2017, 6:11 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 6
<h1>Hello World!</h1> Html 😉
12th Jul 2017, 6:02 PM
S C
+ 6
Python doesnt have semicolons by default, so using it would be cheating but here are a few ways to print Hello World without using any of the characters in Hello World !! (I'd ask you to pick Manual's as the best answer however) https://code.sololearn.com/c5zc0esoSX2l/?ref=app https://code.sololearn.com/csWg58LIBiS7/?ref=app https://code.sololearn.com/cYXk43P7zy4c/?ref=app
13th Jul 2017, 2:19 AM
Pixie
Pixie - avatar
+ 5
if(puts("hello World")){} C
12th Jul 2017, 6:15 PM
Manual
Manual - avatar
+ 5
@Shivansh the ones for cout and printf are basicaly the same as the puts(); version code using the printf version https://code.sololearn.com/cuvHPsTX6sID/?ref=app
12th Jul 2017, 6:31 PM
Manual
Manual - avatar
+ 4
@Baptiste Thanks! I like the asm you posted!
12th Jul 2017, 6:35 PM
Manual
Manual - avatar
+ 4
@Shivansh Thanks!
12th Jul 2017, 6:38 PM
Manual
Manual - avatar
+ 4
Thanks @Joker, you made me laugh (the way you said it) 😂
13th Jul 2017, 12:22 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 3
Really nice Manual
12th Jul 2017, 6:30 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 3
Dude busted out assembly. hit him with best comment
12th Jul 2017, 7:34 PM
LordHill
LordHill - avatar
12th Jul 2017, 8:03 PM
LordHill
LordHill - avatar
+ 2
@Sam Nice one😉😎 Like a boss
12th Jul 2017, 6:04 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
+ 2
@Baptise Salute👏
12th Jul 2017, 6:27 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
+ 2
@Joker Yeah I agree But Let's Not Hurry Up Trying to bring out more Amazing codes Fun at it's peak😉
12th Jul 2017, 7:36 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
+ 2
I got one while(printf("Hello World") && 0){ }
12th Jul 2017, 8:14 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
+ 1
@Manual Same was in my Mind Buddy Buddy😅😉
12th Jul 2017, 6:28 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
+ 1
@Manual Really Cool
12th Jul 2017, 6:33 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
+ 1
@Joker Cool
12th Jul 2017, 8:09 PM
SHIVANSH NEMA
SHIVANSH NEMA - avatar
0
@Krishna Awesome Sir
13th Jul 2017, 9:38 AM
SHIVANSH NEMA
SHIVANSH NEMA - avatar