Write a C++ code fragment that is assumed to be embedded in an otherwise complete and correct program. You are to assume the user has been prompted (so you don’t have to) for (exactly) 20 values of type int to be read from the keyboard, You are to use this input to fill an array. Do not write a full program, just the code fragment to do this. Do give declarations of the array and any variables you use.

What will be an ideal response?


```
int i, a[20];
for(i=0; I <20; I++)
cin >> a[i];
```

Computer Science & Information Technology

You might also like to view...

A normal distribution is displayed as a bell curve on a chart

Indicate whether the statement is true or false

Computer Science & Information Technology

To change the width of a column, you click Column Width in the ________

A) Cells group on the FORMAT tab B) Adjustment group on the FORMAT tab C) Cells group on the HOME tab D) Adjustment group on the HOME tab

Computer Science & Information Technology

__________ is a form of legal protection that grants the author of an original work exclusive rights that include distributing and performing that work.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In the type of relationship between the Business Analyst and Client tables illustrated in the accompanying figure, the infinity symbol indicates that one analyst is related to _________________________ clients.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology