TOPIC

runtime error porque?

Heitor Fujino asked 2 months ago

using System;

public class Program { public static int Main() { double total = 0.00; int ped, quan; ped = Int32.Parse(Console.ReadLine()); quan = Int32.Parse(Console.ReadLine()); switch(ped) { case 1: total = 4.00 quan; break; case 2: total = 4.50 quan; break; case 3: total = 5.00 quan; break; case 4: total = 2.00 quan; break; case 5: total = 1.50 * quan; break; } Console.WriteLine("Total: R$ {0}", Math.Round(total,2)); return 0; } }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.