Проблем с решаването на задача Hungry Garfield
Здравейте!Опитах се да реша задача от изпита от 21.02. но ми дава грешка .Ето едно от решеничта
using System;
namespace Hungry_Garfield
{
class HungryGarfield
{
static void Main()
{
double money = double.Parse(Console.ReadLine());
double rate = double.Parse(Console.ReadLine());
double pizzaPrice = double.Parse(Console.ReadLine()) / rate;
double lasagnaPrice = double.Parse(Console.ReadLine()) / rate;
double sandwichPrice = double.Parse(Console.ReadLine()) / rate;
uint pizzaQuantity = uint.Parse(Console.ReadLine());
uint lasagnaQuantity = uint.Parse(Console.ReadLine());
uint sandwichQuantity = uint.Parse(Console.ReadLine());
double spentForPizza = (pizzaPrice * pizzaQuantity);
double spentForLasagna = (lasagnaPrice * lasagnaQuantity);
double spentForsandwich = (sandwichPrice * sandwichQuantity);
if (0<=money)
{
Console.WriteLine("Garfield is well fed, John is awesome. Money left: ${0.0.00}",money-0);
}
else
{
Console.WriteLine("Garfield is hungry. John is a badass. Money needed: ${0.0.00}", Math.Abs(money - 0));
}
}
}
}

Много ти благодаря :)