•Write a program to display the duplicate values in an array.
Formulas Needed: None
Final submission along with Code
Documentation & Naming Style Sheet
1. Opening Documentation: the header block should include the following:
•Program name/syntax
•Description of what the program does
•Summary of the problem's specifications and assumptions
•License info (optional)
•References to sources of additional information used
•Parameters
•Class/Program Invariant (ensure these conditions are true)
•Algorithm(s) used (including any special notes)
•Out

Respuesta :

I'm gonna help you out here by writing the jist of the loop that youll need because you may have to write this in c or java or python so all you need to do is create an array thats the same size as the array you want to duplicate and a for loop
int main ( ) {

int i,b [5],a [5] ={1,2,3,5,7};

for(i=0;i <5;i++)
{
b [i]=a [i];
}

return 0;
} //hope this helps :)
Q&A Education