HI,
I NEED HELP(c++)
actually i make a programme through array in which even no.s print.its an integer type.array size is 20. please help me how can i do this!

Could you elaborate a little more?

>> in which even no.s print

Do you mean you want to print the even numbers in the array? Also, paste the code you have already written.

do you want to print the values stored in array?
u can use a loop like

for( int i = 0; i < 20; i++ )
{
cout << "Location: " << i << " and Value:" << array[i] ;
}

Look up the use of the modulus (%) operator.

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.