+ 2
How to code 10 number using array and the number user input will be count base on each of the number using c++
code using array
30 Respostas
+ 1
I deviated a code I just wrote a bit to perfectly fit your needs.
https://code.sololearn.com/chb20FxENILW/#cpp
+ 3
the user enter 10 numbers
then program will count the the number
eg: input 1 2 3 1 1 2
output will show the highest count the number we input
eg: output highest count : 1
number 1 have 3 input
sry if this is confusing
+ 2
Ok, so:
1 2 2 3 7 2 5 0 1 2 -> 2
2 3 5 3 3 3 3 8 1 7 -> 3
0 1 2 3 4 5 6 7 8 9 -> ?
+ 2
yeah something like that
+ 2
What should I write instead of '?'?
+ 2
and also output how many time we input the number
1 2 2 3 7 5 0 1 2 - 2
2 : 3 times
+ 2
I'm not sure .. I'll leave that to u
+ 2
I'm sorry i don't quite understand that question
+ 2
What's more important?
It runs fast.
It is easy to read.
There are few logical steps.
+ 2
thank you so much
+ 2
hahaha yeah I don't get it actually your code. i just understand how it works
+ 2
alright. anytime is fine
+ 1
Can you give steps like this, please?
The user enters...
Then you do...
After that you do...
Finally, you output...
+ 1
Ok, I'll give back all numbers in the '?' edge case.
Last question before I start typing: How important is performance compared to readability and logical complexity for this code?
I'm a student, it might take some days.
+ 1
doesn't matter if it is fast or not
logical steps also doesn't matter
easy to read sure will help so i think it's important
+ 1
thanks for the code.. even though i dont really understand it, really appriciate it.
anyway this is the code that i actually want. I try to make it myself
https://code.sololearn.com/cvldspxsm4zt/#cpp
ps : i am still a beginner at c++ so thats why i dont understand the code.
+ 1
anyway i want to ask something.
why you are not using "using namespace std;" inside your code?
+ 1
i see.. so could you explain to me how your code work?
and how to use your code for user to input the number
+ 1
alright i already get it. just didn't read it carefully