using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace First { class Program { static void Main(string[] args) { int pre_forcast; int pre_period; douple a = 0.4 ; Console.WriteLine("what is Previous Forecast ? :"); pre_forcast = System.Convert.ToInt32(Console.ReadLine()); Console.WriteLine("what is Previous Period’s Actual Demand ? :"); pre_period = System.Convert.ToInt32(Console.ReadLine()); int New_Forecast = (int) (pre_forcast + a * (pre_period - pre_forcast )); Console.WriteLine("The New Forecast : ", New_Forecast ); Console.ReadLine(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)