Project 15: Geometric Sequence Part 2
Project 15: Variables 'val1', 'n1', val2', 'n2', 'n' have been initialized.
val1 represents the value of a term in a geometric sequence (45 in the example above)
n1 represents the term number for val1 in the sequence (3 in the example above)
val2 represents the value of another term in a geometric sequence (1215 in the example above)
n2 represents the term number for val2 in the sequence (6 in the example above)
n is the term of the sequence we are finding (if n = 4, value = 135 in the example above)
Task: Appropriately initialize 'value', which represents the nth term of the geometric sequence given.
**If your code works for 5 test cases in a row, you can enter your e-mail address.
Universal Computational Math Methods:
pow(5,2) returns 25.0
abs(-3.0) returns 3
sqrt(49.0) returns 7.0