we declare a one dim. array which can hold 100 values a integer in input using standard in(keyboard) and stored in variable a we run a for loop for i from 0 to a taking float as input from standard in(keyboard) we print the value of counter i,store it in the array at position i-1 and print the value of cos for the corresponding float value stored