07. World Swimming Record// C#
Здравейте,
може ли да ми намерите грешките - дава ми 60/100.. а нямам visual studio ( v dotnetfiddle няма debug...)'
using System;
public class Program
{
public static void Main()
{
double record = double.Parse(Console.ReadLine());
double m = double.Parse(Console.ReadLine());
double ivantime = double.Parse(Console.ReadLine());
double ivan = ivantime*m;
double additional = m/15 ;
double realtime =Math.Floor(additional)*12.5 + ivan;
if (realtime >record)
{ double slow = (realtime-record);
Console.WriteLine("No, he failed! He was {0:f2} seconds slower.",slow );
}
else if ( realtime<=record)
{
Console.WriteLine(" Yes, he succeeded! The new world record is {0} seconds.",realtime);
}
}
}
Благодаря!!
Здравейте,
благодаря. Така изписано и двете ли закръгля?
double realtime =Math.Floor(additional)*12.5