Write a program using function prototype function calling


Write a program using function prototype, function calling, and function definition called scale_by_two.

a.) The return value should be of double input.

b.) Two variables in int main const int(10); int array[size];

c.) Using for loop store double value in array: [2,4,6,8,10,12,14,16,18,20]

d.) Using another for loop store an alternative double value to array [2,4,12,8,10,24,14,16,36,20]

Side note: The previous solution was great! but i forgot to mention it should have been a function with parameters

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a program using function prototype function calling
Reference No:- TGS02248849

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)