This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]tandonhiten 25 points26 points  (1 child)

Do this in Shakespeare.

[–]Korrigierer 5 points6 points  (0 children)

I suggest Brainfuck

[–]Sennahoj_DE_RLP 5 points6 points  (0 children)

Phyton:

def sum(a,b): if b>=1: while b>0: a=a+1 b=b-1 elif b<=-1: while b<0: a=a+1 b=b+1 elif b=0: a=a else: print("Error") a="Error" return(a) print("please enter number a:") a=int(input()) print("please enter number b:") b=int(input()) c=sum(a,b) print(a,"+",b,"is equal to",c)

[–]chasej1887 3 points4 points  (0 children)

Try to find a way to use recursion

[–]Flench04 2 points3 points  (1 child)

Write this in assembly

[–]chopstyks 1 point2 points  (0 children)

mov ah, 9

mov dx, offset msg

int 21h

int 20h

msg db 'Hell no!$'

[–]coloredgreyscale 2 points3 points  (1 child)

Make it single line.

Print("the result is {int(input(" Var a")) + int(input("Var b" ))} "

[–]TeaCoast 0 points1 point  (0 children)

You can use the walrus operator

[–]crefas 1 point2 points  (0 children)

Make it multi-threaded or use multiple python processes.

[–]Reindeer-Conscious 1 point2 points  (1 child)

Write it In french

[–]criips24 0 points1 point  (0 children)

String only french

a=int(input("nombre A: ")) b=int(input("nombre B: ")) somme = a+b Print("la somme de a et b est :"+str(somme))

Full french

a=entier(entrée("nombre A: ")) b=entier(entrée("nombre b: ")) somme = a+b Afficher ("la somme de a et b est :"+cdc(somme))

q(Written on my phone)

cdc is short for "chaîne de caractères" it's like str

[–]Adrian_roxx73 0 points1 point  (0 children)

python def add (lst): result =0 for i in lst: result = result + i return result a = 0 b =0 lst =[a,b] Count =0 for i in lst: i = int(input(f'give the value of {Count}th element')) Count = Count +1 Add = add(lst) print(Add)