0

I created a structure to input your location and simply print it, but it's not working, plz help me

https://code.sololearn.com/c2lIJDL8TK86/?ref=app (TELL ME HOW TO USE LOOP TO TAKE INPUT IN A STRING)

13th Jan 2023, 2:52 PM
SD Anime
3 Respuestas
+ 1
SD Anime Don't use & for string input address. For other type, it must. for (int 1-0; i<1; i++) ❌ // this is wrong way initializing... Correct way is : for (int i=0; i<2; i++) //correct✅.it i, not 1 You wrote xs instead of %s in output statement in loop.. try these changes. it works....
13th Jan 2023, 7:39 PM
Jayakrishna 🇮🇳
+ 1
I mentioned 4 changes. But you are done only 1 change... Post your separate update new code again, with trying changes if not work...
13th Jan 2023, 7:57 PM
Jayakrishna 🇮🇳
0
Still not working 🤯😱
13th Jan 2023, 7:47 PM
SD Anime