Convert boolean values to strings 'Yes' or 'No'.

Convert boolean values to strings 'Yes' or 'No'.

Complete the bool_to_word (JavascriptboolToWord ) method.

Given: a boolean value

Return: a 'Yes' string for true and a 'No' string for false

using System;
using System.Linq;

public static class Kata
{
  public static string boolToWord(bool word)
  {
    //TODO
    if(word)
    {
      return "Yes";
    }
    else
    {
      return "No";
    }
  }
}
原文地址:https://www.cnblogs.com/chucklu/p/4597460.html