I have a similar program to reun although its a bit different with no histograms or anything and its on c++

Could i ask, where the vlaues in the array size 20 below come from??

int range={0};
int sales[20]=
{ 267, 359, 468, 525, 678, 710, 856, 867, 920, 1067,
254, 987, 1034, 875, 345, 765, 234, 500, 300, 490};
int p[20];

As in sales[20] and p[20]? It's just the size of the respective arrays. They can hold twenty elements. p is uninitialised but sales is by virtue of ={numbers];.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.