How do i edit my code for the correct shortest string to be ouputted? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i edit my code for the correct shortest string to be ouputted?

https://code.sololearn.com/cGvD91ErtHEn/?ref=app

5th Dec 2018, 2:40 PM
farhan bhatti
farhan bhatti - avatar
4 Answers
+ 11
hey farhan bhatti, do you mind elaborating further on your question? other wise, you should read the thread that Faisal shared thanks 😊 👍
5th Dec 2018, 2:53 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 10
i think the problem is all of the variables in if statements without strlen(), just wrap it around all the variables and it should be fine 😁 https://code.sololearn.com/c0cy4Axvkb6G/?ref=app
5th Dec 2018, 3:12 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 5
Please avoid posting general statements or advertising codes in this section as it would be a violation to the guidelines. I would recommend instead posting this onto your activity feed, as it would be better suited for there (or if this is actually a question as LONGTIE👔👎 said, please try to clarify) https://www.sololearn.com/discuss/1316935/?ref=app
5th Dec 2018, 2:50 PM
Faisal
Faisal - avatar
+ 1
thanks LONGTIE, I’ll try that😅
5th Dec 2018, 3:51 PM
farhan bhatti
farhan bhatti - avatar