0
What's the error 1002 means wrong?
error 1002 expected
5 Respuestas
+ 1
try write your code here and we can look at it.
+ 1
try dont use semicolon after{} but simple , and after " " dont use ,
0
string yourStory
Console.WriteLine("What kind of story?");
yourStory = Console.ReadLine();
Console.WriteLine("Adventure story {0}; Science fiction {1};Comedy {3};Melody slayer{2}", yourStory);
0
string yourStory
Console.WriteLine("What kind of story?");
yourStory = Console.ReadLine();
Console.WriteLine("Adventure story {0}, Science fiction {1},Comedy {3},Melody slayer{2}" yourStory);
0
in the second WriteLine method, for {1} {2} {3} replacement characters, you have not provided any variables. you have provided only yourStory variable which replaces {0}.
this has given error.