FUNCTION C++ PROGRAM
Write a global and local variable program that would require the user to input a value of the Radius
of a circle and then show the output in the diameter, circumference of the circle and area of the
circle.
Write your answer.
ARRAY (One-Dimensional Array) (C++ LANGUAGE)
The value of variables are A, B, n and m. Assuming n =5 and m =5. What will be the output of x if A[10] =
{-1, -2, -3, -4 ,– 5, -6, -7, -8, -9, -10} and B[10] = {1, 2, 3,4, 5, 6, 7, 8, 9, 10}?
int c, x, n, m, d ;
for (c = 0; c <= n="" ;="" c++="">=>
for (d = 0; d <= m="" ;="" d++="">=>
x = A[c] * B[d];
cout < x=""><>
cout < "\n”;="">
Write your answer.