## Fibonacci Triangle

In C#, we can take input from the user for the limit for a Fibonacci triangle. The Fibonacci series can then be printed for that … Read More

Categories C#

## Number Triangle

There are several ways to print a number triangle in C#.

Example:

using System; public class Example { public static void Main(string
Categories C#

## Alphabet Triangle

In C#, we can print two types of triangles, either generated by letters or numbers.

Example:

using System; public class Example { public static
Categories C#

## Number in Characters

To convert a number in characters in C#, we can use a loop and switch case. After taking input from the user, the number … Read More

Categories C#

## Decimal to Binary

A decimal or a base-10 number can be converted into binary or base-2 number in C#.

### Decimal Number:

A decimal number ranges from 0 … Read More

Categories C#

## Swap Numbers

In C#, we can swap two numbers without using a third variable, using either of the two ways:

1. By using the + and – operators
Categories C#

## Reverse number

Loop and arithmetic operators can be used in C#, to reverse a number.

Example:

using System; public class Example { public static void Main
Categories C#

## Sum of digits

We are using a loop and mathematical operations to print the sum of digits in C#.

## Algorithm:

• Step 1: Take input from the user.
Categories C#

## Armstrong Number

A number equal to the sum of the cubes of its digits is called an Armstrong number.

For example,

0, 1, 153, 370, 371 and … Read More

Categories C#

## Factorial

For a number n, the product of all its positive descending integers is called it’s factorial which is denoted by n! and is pronounced as “n … Read More

Categories C#