Category: C#

February leap year

C#: Is year a leap year or not? Code

Simple but quite common code used in a lot of situations where applications need to determine the date. This simple math based program allows us to easily determine if the year we have entered is a leap year or not.  

 

identity matrix

Identity Matrix with a for loop

In this simple program we  print an identity matrix to the console using a for loop.

   

ASCII Table

ASCII Character Codes, C#

Today we are going to write a program in C# that accepts a character and determines using if statements whether or not it is an upper case letter, a lower case letter, a number or a special character. Put simply ASCII stands for the American Code for Information Interchange. It is a code that represents […]

graph-circle-a

The Circle – Simple C# Math

Today we are going to write a simple console application that takes in values that we give and determines whether or not the points we input lie inside the circle, on the circle or outside the circle.

   

coplanar

Coplanar Math in C#

Geometric objects lying in a common plane are said to be coplanar. Three noncollinear points determine a plane and so are trivially coplanar. Four points are coplanar iff the volume of the tetrahedron defined by them is 0, The console program below works out the mathematics behind the caculations of three points on a line and determines whether or not the input values […]

upperLower

C# Convert letter from Lower to Upper

In this quick tutorial we are going to ask for a lower case letter input and convert that letter to upper case.

Pretty Simple Program! Enjoy

C# Threading

Threading in C#

  Threading is a concept in Computer Science that a “thread” is simply the component of a process. Programs can be single-threaded or multi-threaded programs.There are plenty of resources online that will explain in finer detail the threading concept so for the purpose of this article i will provide some simple code that you could […]

anagramChecker

C# – Anagram Checker

  So what is an anagram!? : An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once; for exampleDoctor Who can be rearranged into Torchwood. Someone who creates anagrams may be called an “anagrammatist”.[1] The original word or phrase […]