Share your repls and programming experiences

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

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...

Commentshotnewtop
AmazingMech2418 (899)

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

AmazingMech2418 (899)

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

CodingCactus (3010)

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

AmazingMech2418 (899)

@CodingCactus Didn't use the operator though!

CodingCactus (3010)

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

AmazingMech2418 (899)

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

CodingCactus (3010)

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

xxpertHacker (388)

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

AmazingMech2418 (899)

@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.