a) Write a method PopulationTotal that accepts 2 positive values, namely the current
static int PopulationTotal(int population, int rate)
{
if(population < 0 || rate < 0)
{
Console.WriteLine("Incorrect input data!");
return 0;
}
return population + rate;
}
Comments
Leave a comment