Ok here we go. I'm doing my degree in network engineering and i have programming as one of my classes. As part as my assignment i have to create a quiz. I have created the quiz everything works now im just adding bits to it. Here is my problem
i have a line of code that tells you how many questions you got right. (aka the code below)
Console.WriteLine("You Scored " + rightAnswer);
the 'rightAnswer' tells me how many you got right (e.g. 6) What i want is after the number i want another piece of text that says "out of 12)
so when it comes up it will say "You scored '12' out of 12"
Question
Y2Stu
Ok here we go. I'm doing my degree in network engineering and i have programming as one of my classes. As part as my assignment i have to create a quiz. I have created the quiz everything works now im just adding bits to it. Here is my problem
i have a line of code that tells you how many questions you got right. (aka the code below)
Console.WriteLine("You Scored " + rightAnswer);the 'rightAnswer' tells me how many you got right (e.g. 6) What i want is after the number i want another piece of text that says "out of 12)
so when it comes up it will say "You scored '12' out of 12"
How do i do that?
Link to comment
Share on other sites
13 answers to this question
Recommended Posts