+ 8

Symbols code coach

What is wrong with this code It says that test case 4 failed why ?? https://code.sololearn.com/cbX9OslrVDmO/?ref=app

16th Aug 2020, 12:29 PM
Ahmed Mahmoud
Ahmed Mahmoud - avatar
5 Respostas
0
Use fgets(str1,100,stdin); instead of gets() ; Or add this at end to not print extra charecter... str2[j]='\0'; Or pls post your updated code... If any case fail still...
16th Aug 2020, 1:41 PM
Jayakrishna 🇮🇳
+ 3
Even when I am not including these little symbols also say that test case four failed
16th Aug 2020, 1:06 PM
Ahmed Mahmoud
Ahmed Mahmoud - avatar
+ 2
thanks a lot 🌺❤️ the problem was with the str2 i didn’t end it as u siad so thanks 👏👏🌺
16th Aug 2020, 2:07 PM
Ahmed Mahmoud
Ahmed Mahmoud - avatar
+ 1
You including the symbols also.. Why? It should only contian alphabets, numbers, and space.
16th Aug 2020, 1:00 PM
Jayakrishna 🇮🇳
0
You're welcome..
16th Aug 2020, 2:12 PM
Jayakrishna 🇮🇳