CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Created by Fred Kwame Ayanful
// Revised and Fixed by JaScript
// Refactored by David Carroll
// - See refactoring notes at bottom.
// - See comments thread for links to all
// previous Refactored Versions.
using System;
namespace OfferteVerver {
class Program {
static double Input(double defaultValue) {
var input = Console.ReadLine();
return string.IsNullOrEmpty(input)
? defaultValue
: Convert.ToDouble(input);
}
static void Log(string msg) {
Console.WriteLine(msg);
}
static void Log<T>(string label, T value) {
Log($"{label}: {value}");
}
static void Main(string[] args) {
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run