+ 15

Happy Programmers Day

Write your version https://code.sololearn.com/cD04c6k3R3Du/?ref=app int day = 13; string month = "September"; string msg; msg = (day == 13 & month == "September") ? "Programmers" : "Other"; Console.Write("Happy "); Console.Write(msg); Console.Write(" Day");

13th Sep 2017, 12:05 AM
Kristine Avetisyan
Kristine Avetisyan - avatar
9 Answers
+ 6
Thank you
14th Sep 2017, 9:50 AM
Kristine Avetisyan
Kristine Avetisyan - avatar
+ 5
👍
14th Sep 2017, 9:38 AM
Kristine Avetisyan
Kristine Avetisyan - avatar
+ 3
You need to change the value of variable
14th Sep 2017, 9:31 AM
Kristine Avetisyan
Kristine Avetisyan - avatar
+ 2
Always Say Happy Programmers Day
14th Sep 2017, 9:05 AM
Kunwar Yuvraj Pundir
Kunwar Yuvraj Pundir - avatar
+ 2
Why? Just set the dynamic values of date and month USE datetime.Now()
14th Sep 2017, 9:36 AM
Kunwar Yuvraj Pundir
Kunwar Yuvraj Pundir - avatar
14th Sep 2017, 9:44 AM
Kunwar Yuvraj Pundir
Kunwar Yuvraj Pundir - avatar
+ 1
Hola
14th Sep 2017, 2:22 AM
Angel Aponte
Angel Aponte - avatar
+ 1
Your Welcome 😀
14th Sep 2017, 9:53 AM
Kunwar Yuvraj Pundir
Kunwar Yuvraj Pundir - avatar
+ 1
Never use static values.
14th Sep 2017, 9:53 AM
Kunwar Yuvraj Pundir
Kunwar Yuvraj Pundir - avatar