0

Guys, Any example of user defined function wth array and loop condition? need it asap. thanks.

simple program is enough

10th Jul 2016, 9:08 AM
Francis Vonn Ibardaloza
Francis Vonn Ibardaloza - avatar
1 Respuesta
0
void somefunction(){ int n[5]; for (int i = 0; i < 5; ++i) { std::cout<<"Enter a number : "; std::cin>>n[i]; } for (int i = 0; i<5; ++i){ std::cout << "Array["<< i << "] : " << n[i] << std::endl; } }
11th Jul 2016, 11:08 PM
sakje coookie
sakje coookie - avatar