public static void Main()
Console.WriteLine("Enter game price:");
int gamePrice = int.Parse(Console.ReadLine());
int savings = Saving2Game(gamePrice);
Console.WriteLine("the goal was to save " + gamePrice +"$, you saved " + savings +"$");
public static int Saving2Game(int gamePrice)
bool enoughMoney = gamePrice > totalSave;
Console.WriteLine("Enter new income");
currSave = int.Parse(Console.ReadLine());
totalSave = totalSave + currSave;
Console.WriteLine("untill now you saved - " + totalSave + "$");
enoughMoney = gamePrice > totalSave;