0
Guys, Any example of user defined function wth array and loop condition? need it asap. thanks.
simple program is enough
1 Odpowiedź
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;
}
}