0

Can anyone tell me what is wrong with this code?

Was trying finding missing no. in a given input array numbers 1 to n. I'm not so good in c so can anyone help me? https://code.sololearn.com/c2Hz5M2ULxCu/?ref=app

23rd Jun 2022, 9:47 AM
Vkd
Vkd - avatar
6 Antworten
+ 2
You can't with user input. You would need to predefine the elements by hardcoding. You cannot work your way around the more-than-once user input from Sololearn. It's not possible.
23rd Jun 2022, 10:08 AM
Justice
Justice - avatar
+ 1
You can't ask for the user to provide input more than once on SoloLearn which is what your first for-loop is doing.
23rd Jun 2022, 9:55 AM
Justice
Justice - avatar
0
Where is the code so we can see what wrong?
23rd Jun 2022, 9:49 AM
Justice
Justice - avatar
0
Oh sorry here it is Justice
23rd Jun 2022, 9:50 AM
Vkd
Vkd - avatar
0
So how can I solve this Justice
23rd Jun 2022, 10:01 AM
Vkd
Vkd - avatar
0
Oh ok thanks Justice 😄
23rd Jun 2022, 2:58 PM
Vkd
Vkd - avatar