+ 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
21 Answers
+ 13
Factorial Program:
https://code.sololearn.com/cetfyzhulHuV/?ref=app
+ 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
+ 6
<h1>Hello World!</h1>
Html ๐
+ 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
+ 5
if(puts("hello World")){}
C
+ 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
+ 4
@Baptiste Thanks!
I like the asm you posted!
+ 4
@Shivansh
Thanks!
+ 4
Thanks @Joker, you made me laugh (the way you said it) ๐
+ 3
Really nice Manual
+ 3
Dude busted out assembly. hit him with best comment
+ 2
@Sam
Nice one๐๐
Like a boss
+ 2
@Baptise
Salute๐
+ 2
@Joker
Yeah I agree
But Let's Not Hurry Up
Trying to bring out more Amazing codes
Fun at it's peak๐
+ 2
I got one
while(printf("Hello World") && 0){ }
+ 1
@Manual
Same was in my Mind
Buddy Buddy๐
๐
+ 1
@Manual
Really Cool
+ 1
@Joker
Cool
0
@Krishna
Awesome Sir