Professional Documents
Culture Documents
CS 100 - Computational Problem Solving: Fall 2017
CS 100 - Computational Problem Solving: Fall 2017
Fall 2017
Quiz 4
Name: ___________________________________________
int total = 0;
Q2. Write code that fills an array double a[10] with the given set of values below.
[5]
1 4 9 16 25 36 49 64 81 100
double values[10];
for (int i = 0; i < 10; i++)
{
values[i] = (i + 1) * (i + 1);