Write a C++ program that creates two double-type one dimensional arrays Radius and Area of size 10 elements each. In array Radius, get 10 input values (radius of 10 circles). The program should calculate the area of circles for 10 inputted radius values, and store in the corresponding positions in array Area. In the end, program should display 10 calculated areas for the circles.
Important Note: Use pointer notation to access elements of arrays “Radius” and “Area” (for input, computation, and output).
Formula: Area = 3.14 * (radius * radius);
Comments
Leave a comment