#HELP PLS

17 messages · Page 1 of 1 (latest)

viscid inlet
#

so what i gotta do is code up a function that takes in a number and returns that number to the third power
and then call that function in a standard c++ program and print it while passing in 7
this way you can practice writing the standard template thing while also practicing functions

blazing cypressBOT
#

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.

viscid inlet
#

i have no clue what i am doing

native trench
#

have you considered attending the classes

viscid inlet
#

its online

#

and my internet isnt good

#

i couldnt hear a single friggin thing

potent beacon
#

Try it first on your own and then when you encounter a specific problem describe it here along with the code

viscid inlet
celest edge
#

then call it

still mist
#

the two most straightforward ways I can think of to get a number to the third power:

  • you can use the standard library function std::pow
  • you can multiply it by itself 3 times: n * n * n
    think you can put this in a function somehow?
viscid inlet
#

hm

#

prolly yea ty ty

blazing cypressBOT
#

@viscid inlet Has your question been resolved? If so, type !solved :)

viscid inlet
#

alr

#

!solved