Google
 
Webcprogramming.com




An Affiliate of AIHorizon




Array Challenge Solution

The following program will first fill in (by asking the user for input) and then list all the elements in an array:

#include <iostream>
      using namespace std;
      int main()
{
  int array[8];
  for(int x=0; x<8; x++)
  cin>>array[x];
  for(x=0; x<8; x++)
  cout<<array[x];
  return 0;
}

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs