I've cut the code down into this small piece so it would be easier to read. My problem is that the value that the user writes into "injtaille" doesn't transfer over to the switch a little lower down. How can I fix this?
if (inj == "oui")
{
Console.WriteLine("Quel est la taille de l'injection? (30 - 50 - 60) ");
injtaille = Convert.ToInt32(Console.ReadLine());
}
switch (client)
{
case 1:
consprix = 25;
imgradprix = 55;
analyzeprix = 28;
switch (injtaille)
{
case 30
}
case 30is missing a:and the code to be executed. What did you expect it to do?:aftercase 30. The problem is that when I put my cursor onswitch (injtaille), it says that I'm using an unassigned value.