+ 4
Lets create a confusing hello world within 15 lines
String a,b,c,d, e,f,g,h, i,j,k; a = "H";b = "e"; c = "l";d = "o"; e = "W";f = "r";g = "d!!";h = a+b+c+c+d+" "+e+d+f+c+g;i = h;j = i;k = j; if (i == a){System.out.println(d);} if (j == b){System.out.println(e);} if (k == j){System.out.println(a+b+c+c+d +" "+e+d+f+c+g);}
5 Réponses
+ 11
import string
printable=string.printable
nums=[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]
new=[]
for n in nums:
for p in printable:
if p==chr(n):
new.append(p)
new="".join(new)
print(new)
https://code.sololearn.com/c994pzG9CeyQ/?ref=app
+ 8
Check this out.
https://code.sololearn.com/WCeF3WP8HhmH/?ref=app
+ 3
Nice
+ 2
12 ways to Hello World!
https://code.sololearn.com/chyVcNfDzV82/?ref=app
0
Nice@David
but you have to change string to char, to minimize the amount of memory occupied by this code.
and also for clearance code use an Array of characters.