HELP

I have to make a program that takes several numbers into an array into a function, and send them back into the main function multiplied by 1.13.
This is what I have so far
#include <iostream>

using namespace std;
void connell(int&n[20])
main()
{
int num[20];
int c;
for (c=0; c<=20; c++)
{
cout<<"Enter the price of your product: ";
cin>>num[c];
}

}
void connell(int&n[20])
{

}

I do not know how to get numbers from an array from a main program to a function. Can someone please help?
I do not really understand your task described on top of your article.

And what has connell() to do?

Your for-loop should better terminate on (c < 20) to not run out of memory reserved for num. Try counting the number of iterations your loops block will be executed by hand to understand.
And please use code tags (this little "<>"-button at the right side of the message composing window) and indention.
Topic archived. No new replies allowed.