By PALMERx64,
By +Random Stranger · Posted
By fishnet37222 · Posted
By Ccl Ncc · Posted
By naap51stang · Posted
By hellowalkman · Posted
We rely on ads to keep creating quality content for you to enjoy for free.
Please support our site by disabling your ad blocker.
Continue without supporting us
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
bs819
Hi all, I have written a program with a function and I want to know if it all looks okay.
"Design a function that accepts an object's falling time (in seconds) as an argument. The function should return the distance in meters that the object falls [ distance = 1/2(gravity)(time^2) ]. Design a program that calls the function in a loop that passes the values 1 through 10 as arguments and displays the return value."
Link to comment
https://www.neowin.net/forum/topic/1182067-function-not-a-specific-language/Share on other sites
7 answers to this question
Recommended Posts