Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Joro Football Player
//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 string t = "t"; int p = 1; int h = 2; //string t = Console.ReadLine(); // int p = Convert.ToInt32(Console.ReadLine()); // int h = Convert.ToInt32(Console.ReadLine()); double result; int weekends = 52; double holidays = (p * 0.5); result = ((weekends - h) * 2/3) + holidays + h; result = Math.Floor(result); //Console.WriteLine(result); if (t == "t") { result = result + 3; } Console.WriteLine(Math.Floor(result)); } } }
run
|
edit
|
history
|
help
0
ss
https://rextester.com/ZZVYV85848
Recursion
30272 Ex if...
concurrentStack
Convert Excel Range To Absolute Excel Range
Abstract Class
simpleDelegate
How to count the occurrence of each character in a string?
Selection sort