218k views
5 votes
write code to declare variables for s0 with a value of 12.0, v0 with a value of 3.5, a with a value of 9.8, and t with a value of 10, and then write the code to compute s on the basis of these values. at the end of your code, print the value of your variable s to the console.

1 Answer

6 votes
In which language? This will vary but it's very simple.

In JavaScript:

var s0 = 12.0;
var v0 = 3.5;
var
a = 9.8;
var
t = 10;

console.log(s0,v0,a,t);


User MaxwellLynn
by
7.9k points