Skip to content

Instantly share code, notes, and snippets.

@ghostofgamer
Last active May 8, 2022 18:43
Show Gist options
  • Select an option

  • Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 to your computer and use it in GitHub Desktop.

Select an option

Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 to your computer and use it in GitHub Desktop.

Revisions

  1. ghostofgamer revised this gist May 8, 2022. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions задача 7
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,11 @@
    int hoursExpectation;
    int minutesExpectation;
    int spentTime;
    int hour = 60;
    int minutInHour = 60;
    Console.Write("Пациентов в очереди:");
    amountPatients = Convert.ToInt32(Console.ReadLine());
    spentTime = amountPatients * timeReception;
    hoursExpectation = spentTime / hour;
    minutesExpectation = spentTime % hour;
    hoursExpectation = spentTime / minutInHour;
    minutesExpectation = spentTime % minutInHour;
    Console.WriteLine("Вы должны отстоять в очереди " + hoursExpectation + " часа "+ minutesExpectation + " минут");

  2. ghostofgamer revised this gist May 8, 2022. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions задача 7
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,11 @@
    int hoursExpectation;
    int minutesExpectation;
    int spentTime;
    int hour = 60;
    Console.Write("Пациентов в очереди:");
    amountPatients = Convert.ToInt32(Console.ReadLine());
    spentTime = amountPatients * timeReception;
    hoursExpectation = spentTime / 60;
    minutesExpectation = spentTime % 60;
    hoursExpectation = spentTime / hour;
    minutesExpectation = spentTime % hour;
    Console.WriteLine("Вы должны отстоять в очереди " + hoursExpectation + " часа "+ minutesExpectation + " минут");

  3. ghostofgamer revised this gist May 8, 2022. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions задача 7
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,11 @@
    int timeReception = 10;
    int hoursExpectation;
    int minutesExpectation;
    int spentTime;
    Console.Write("Пациентов в очереди:");
    amountPatients = Convert.ToInt32(Console.ReadLine());
    hoursExpectation = amountPatients * timeReception / 60;
    minutesExpectation = amountPatients * timeReception % 60;
    spentTime = amountPatients * timeReception;
    hoursExpectation = spentTime / 60;
    minutesExpectation = spentTime % 60;
    Console.WriteLine("Вы должны отстоять в очереди " + hoursExpectation + " часа "+ minutesExpectation + " минут");

  4. ghostofgamer revised this gist May 8, 2022. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions задача 7
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    int amountPatients;
    int timeReception = 10;
    int chas;
    int min;
    int hoursExpectation;
    int minutesExpectation;
    Console.Write("Пациентов в очереди:");
    amountPatients = Convert.ToInt32(Console.ReadLine());
    chas = amountPatients * timeReception / 60;
    min = amountPatients * timeReception % 60;
    Console.WriteLine("Вы должны отстоять в очереди " +chas+" часа "+min+" минут");
    hoursExpectation = amountPatients * timeReception / 60;
    minutesExpectation = amountPatients * timeReception % 60;
    Console.WriteLine("Вы должны отстоять в очереди " + hoursExpectation + " часа "+ minutesExpectation + " минут");

  5. ghostofgamer created this gist May 8, 2022.
    10 changes: 10 additions & 0 deletions задача 7
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    int amountPatients;
    int timeReception = 10;
    int chas;
    int min;
    Console.Write("Пациентов в очереди:");
    amountPatients = Convert.ToInt32(Console.ReadLine());
    chas = amountPatients * timeReception / 60;
    min = amountPatients * timeReception % 60;
    Console.WriteLine("Вы должны отстоять в очереди " +chas+" часа "+min+" минут");