From 4284f8454b639b955d6cf2323e97c8dc73bc21c8 Mon Sep 17 00:00:00 2001 From: Geesilu <91755686+Geesilu@users.noreply.github.com> Date: Wed, 6 Oct 2021 02:08:48 +0530 Subject: [PATCH 1/3] Create odd_even.py Python program to check if the input number is odd or even. --- Python/odd_even.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Python/odd_even.py diff --git a/Python/odd_even.py b/Python/odd_even.py new file mode 100644 index 00000000..dbf47163 --- /dev/null +++ b/Python/odd_even.py @@ -0,0 +1,5 @@ +num = int(input("Enter a number: ")) +if (num % 2) == 0: + print("{0} is Even".format(num)) +else: + print("{0} is Odd".format(num)) From b60e02c5a86573173b553bdf2394528191c445d6 Mon Sep 17 00:00:00 2001 From: Kavisha Nethmini Subasinghe <49804459+kavisha-nethmini@users.noreply.github.com> Date: Wed, 6 Oct 2021 02:21:40 +0530 Subject: [PATCH 2/3] Create hello_world.cs C# program to print hello world --- CSharp/hello_world.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CSharp/hello_world.cs diff --git a/CSharp/hello_world.cs b/CSharp/hello_world.cs new file mode 100644 index 00000000..b51406c9 --- /dev/null +++ b/CSharp/hello_world.cs @@ -0,0 +1,10 @@ +namespace HelloWorld +{ + class Hello + { + static void Main(string[] args) + { + System.Console.WriteLine("Hello World!"); + } + } +} From 293c560590cf6f483a26591385b26290a1ea13d0 Mon Sep 17 00:00:00 2001 From: Kavisha Subasinghe <49804459+kavisha-nethmini@users.noreply.github.com> Date: Sat, 1 Oct 2022 23:29:39 +0530 Subject: [PATCH 3/3] Create leap_year.py Python program to check leap year --- Python/leap_year.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Python/leap_year.py diff --git a/Python/leap_year.py b/Python/leap_year.py new file mode 100644 index 00000000..50a1716b --- /dev/null +++ b/Python/leap_year.py @@ -0,0 +1,10 @@ +year = int(input("Enter a year: ")) + +if (year % 400 == 0) and (year % 100 == 0): + print("{0} is a leap year".format(year)) + +elif (year % 4 ==0) and (year % 100 != 0): + print("{0} is a leap year".format(year)) + +else: + print("{0} is not a leap year".format(year))