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 Answers
+ 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