Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CSharp/hello_world.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace HelloWorld
{
class Hello
{
static void Main(string[] args)
{
System.Console.WriteLine("Hello World!");
}
}
}
10 changes: 10 additions & 0 deletions Python/leap_year.py
Original file line number Diff line number Diff line change
@@ -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))
5 changes: 5 additions & 0 deletions Python/odd_even.py
Original file line number Diff line number Diff line change
@@ -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))