Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Work Days
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here int h = 60; double p = Convert.ToDouble(Console.ReadLine()); int d = 75; double result; double productivity = (10/100); double workHours = (p * 90/100); Console.WriteLine(workHours); double workDays = (workHours * 12 * d/100); workDays = Math.Floor(workDays); //Console.WriteLine(workDays); result = workDays - h; if (result < 0) { Console.WriteLine("No"); Console.WriteLine(result); } else { Console.WriteLine("Yes"); Console.WriteLine(result); } } } }
run
|
edit
|
history
|
help
0
Parsing a multi-line text file with comments
my sql
SQL import
example
DateTime
Task 1_3
C++ lesson
Inheritiance
aszasxsdf
test