Mission 3

mail@pastecode.io avatar
unknown
csharp
9 days ago
652 B
0
Indexable
Never
public string DaysTillSaturday(string dayname)
{
    string daysleft;
    switch (dayname)
    {
        case "Sunday": daysleft ="שישה ימים"; break; 
        case "Monday": daysleft ="חמישה ימים"; break;
        case "Tuesday": daysleft="ארבעה ימים"; break;
        case "Wednesday": daysleft = "שלושה ימים"; break;
        case "Thursday": daysleft = "שני ימים"; break;
        case "Friday": daysleft = "יום אחד"; break;
        case "Saturday": daysleft = "אפס ימים"; break;
        default: return "קלט לא תקין";
    }
    return "עד לשבת נותרו "+dayleft;
}
Leave a Comment