array help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thebrainmore
    New Member
    • Oct 2006
    • 5

    array help

    can someone help with this please
    I'm trying to ask a user to input 10 numbers and store the numbers into an array

    what I have is

    cout< "Please Enter the number";
    cin << Array[];

    and i believe I will need a lookp as well

    some help would be awesome
  • sanketbarot
    New Member
    • Sep 2006
    • 30

    #2
    #include <iostream.h>
    #include <conio.h>

    void main()
    {

    int A[10];

    clrscr();
    cout <<"Enter Numbers";

    for (int i=0;i<10;i++)
    {
    cin>>a[i];
    }

    for (i=0;i?<10;i++)
    cout<<a[i]<<' ';

    getch()


    }

    does it solveing ur problem?

    Comment

    • thebrainmore
      New Member
      • Oct 2006
      • 5

      #3
      thats great, much appreciated

      Comment

      Working...