+ 1
How can i enter 10 elements from user in an array and print them in one line using functions?
User will enter 10 values and store them ina array afterwards prints those values in a single line using function?
6 Réponses
+ 4
I suggest you to continue your study with C++ in order for you to tackle that task.
+ 3
#include <iostream>
using namespace std:
int main () {
// declare an array
// iterate through array and assign input to each item; or assign input to each item manually
// iterate through array and print each item; or print each item manually
return 0;
}
/* now your task is to write the code that does as described in comments!
(you can ask us something if you are stuck) */
+ 3
Hi, bro, this function should be born in your head
+ 2
asim hateez, sorry, forgot about that. You can do the function by yourself. Tips to revise: https://www.sololearn.com/learning/1635/ , https://www.sololearn.com/learning/1636/ and https://www.sololearn.com/learning/1642/
+ 1
But bro where is the function..?
🤔🤔