Share your repls and programming experiences

← Back to all posts
C# Magic
h
cuber1515 (94)

Ima show you some magic with C

Along with being a coder I am also a magician (plus much more) so I thought it'd be cool to code a magic trick. Here it is.
If it doesn't work let me know and I will fix it

Hope you like it!!!

P.S. Don't look at the coding until you're done

Comments
hotnewtop
[deleted]

ooooooh

every number from one to nine multiplied by 9 and the sum is nine.

I'm so dum

SAMIRayglon (12)

I got an aardvark and the color gray, lmao

cuber1515 (94)

What was the letter you got at 1st (when you changed your number into a letter) @SAMIRayglon

SAMIRayglon (12)

@cuber1515 i did, lol i got the letter i

cuber1515 (94)

@SAMIRayglon ohhhh, I think I know what happened, it should work now, I just forgot to put step.

Bunnytoes (231)

I know this one. Also great job :D you are learning fast
also I made a new project on our team

cuber1515 (94)

@Bunnytoes Yeah it's a pretty common mind reading
Also I noticed it I left a comment.
And last, thanks.

cuber1515 (94)

@Bunnytoes since I can't comment on this, Thanks!

Bunnytoes (231)

@cuber1515 mcs -out:main.exe main.cs main.cs(125,32): error CS0165: Use of unassigned local variable `Armor' main.cs(125,51): error CS0165: Use of unassigned local variable `armorArmor' main.cs(127,36): error CS0165: Use of unassigned local variable `Weapon' main.cs(127,54): error CS0165: Use of unassigned local variable `weaponDamage' Compilation failed: 4 error(s), 0 warnings exit status 1

cuber1515 (94)

@Bunnytoes yeah I'm working on it, I know how to fix it, but I'm trying to see if I can do it another way.

Bunnytoes (231)

@cuber1515 share it with me and I can help