Share your repls and programming experiences

← Back to all posts
Weekly Challenge #1 - C Solution - Proof of Concept - NOT MY SUBMISSION
AmazingMech2418 (1104)

I know the challenge says that we can't use external libraries, but C requires using libraries for basic I/O.

Thank you to @CodingCactus for letting me know about the weekly challenges and thank you to @TheDrone7 for creating the challenge!

Note: This only works for integers currently. Coming soon is the JavaScript version though...

Comments
hotnewtop
AmazingMech2418 (1104)

@CodingCactus Thank you! Now, I'm going to add the ability to choose the numbers.

AmazingMech2418 (1104)

@CodingCactus Update: Now, you choose the numbers (have to be integers though).

CodingCactus (4320)

@AmazingMech2418 although, you have used an * in the print statement lol

AmazingMech2418 (1104)

@CodingCactus Didn't use the operator though!

CodingCactus (4320)

@AmazingMech2418 but it is in the program lol, just replace it with x or something

AmazingMech2418 (1104)

@CodingCactus Imagine someone doing this in APL where the multiplication isn't even *.

CodingCactus (4320)

@AmazingMech2418 it did say that you can't use the equivalent of * in other langs though :(

xxpertHacker (931)

stdlib is unnecessary. As for stdio, you can make your own stdout.

AmazingMech2418 (1104)

@StudentFires Not if you are using C99 (I honestly didn't want the warning, so I included it)... Also, how would you make your own stdout? The only thing I know with that you can declare the function and call it directly from stdio, but I just find it easier to use stdio.

[deleted]

Good luck using pointers in JS though! I wanna see that happen.

[deleted]

Cheating, use the return value.