When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
63 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
what i mean with basic is like math related codes
Oh boy, do I have a treat for you: https://projecteuler.net/archives
A website dedicated to the fascinating world of mathematics and programming
i dont get it is it like exercices?
You asking that question shows me that you didn't even bother to click the link
i did
its like questions
What?
It's a list of problems
That you can solve with code
i wish i can but im short on time i need them like solved so i can see how it works over all
i was sick for a whole 2 week i couldnt study for it
It doesnt work like that
i need them like solved so i can see how it works over all
That will not teach you anything.
but im short on time [and I] was sick for a whole 2 week [so I] couldnt study for it
that's unfortunate to hear, but nonetheless, your lack of preparation isn't our emergency.
i knoow i wish i can do it the right way
How long do you still have?
like its 21:00 here so 3hours
your exam is at midnight?
no i go to sleep
don't go to sleep then, lol
xdd i already got sick so im not risking it again
but swear i learn from interpreting code
A spontanous nighshift never hurt anyone xD
so if u can help me by giving me simple codes
it wont hurt
but ill really appreciat it
And I swear you don't.
I thought the same way for many years. But without investing the time and actually solving it yourself you are not learning shit (trust me, I failed TONS of exams)
You will forget till tmr
yees i have another test in 2months i can learn the right way then
oh come onn
at least how to solve a 2nd degree equation
And i dont have any code examples
We can give you simple problems, which I've done, but we won't solve your problems for you. We're not your private tutors.
i know but at this point anything can help
How about trying to implement a 2nd degree equation solver?
:P
what do you mean ?
Like, if I understand this correct, you literally just need to implement the quadratic formula, no?
i tryed using ai but it uses another directory other than stdio.h
@naive ermine
We highly recommend against the use of LLMs and AI assistants because:
Especially that last bullet point is important
anyways i remenber what exercics he can give us : either 2nd dgree solver or a code that sort an array numbers (i know how to make it) or a factorial of a number
if i just know how to do the other 2 ill pass
Ngl, just based on the fact that you called stdio.h a "directory": Would it be an option to just be sick tomorrow and take a retake?
idk we start every code with : include <stdio.h>
Okay, but that sounds do-able.
Go on, you have 3 hours left, you can solve these two problems.
The first is literally just the quadratic formula, the second is just repeated multiplication
we ddnt study anything other so yeah
stdio.h is a header file, which contains the part of the standard library that is responsible for providing simple input/output functions, like e.g. printf, scanf, or fgets
ill try the factorial but the 2nd degree idk how
Didn't I just tell you twice?
Like, if I understand this correct, you literally just need to implement the quadratic formula, no?
#1377735097872285861 message
The first is literally just the quadratic formula
#1377735097872285861 message
You are aware that x^2 is the same as x * x, no?
yes i just thought of it lmao
!man sqrt
sqrt, sqrtf, sqrtl - square root function
#include <math.h>
double sqrt(double x);
float sqrtf(float x);
long double sqrtl(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
sqrtf(), sqrtl():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
... (truncated)
how about square root
!solved
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity