C# coding quiz question = Stuck | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C# coding quiz question = Stuck

hello, So I am currently stuck on a C# quiz question I need to fill in the blanks to produce the following output: She said "Yes!" This is the current code I am given with blank being where i need to insert code: Console.WriteLine("She said blank Yes\ blank !"); my answer would be to fill in the blanks: Console.WriteLine("She said \"Yes\""!"); but that produces "She said "Yes"! how am i supposed to have the explination mark at the end of yes when the example has yes ending with \ and the ! after? I'm confused The answer should be Console.WriteLine("She said \"Yes!\""); am I right? but that input is not possible on the quiz

16th Apr 2023, 11:19 AM
Jake
Jake - avatar
3 Answers
+ 2
Yes, your awnser is right. Try with a C# compiler if you are stuck to see the output. Anyways, can you send the question? It would be easier to solve.
16th Apr 2023, 11:31 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
0
Your answer is right and it allows to put it like that ! The answer to be input is like this Console.WriteLine ( "She said \" Yes!\ " "); In first blank put \" and on second blank put " I have filled this, and it shows correct! It should help!
19th Jun 2023, 11:56 AM
Etara
Etara - avatar
0
console.WriteLine("She said \*- *);
30th Jul 2023, 7:47 PM
Collins Abasi
Collins Abasi - avatar