How to install C# Program in Ubuntu. First we need to open ubuntu Terminal. Now here after we need to Write following commands….. 1. sudo apt-get update(or sudo aptitude update ) : It is used to updates local system. Next Command We need to install “mono-runtime” . About Mono, it provides complete CLR ( Common […]

## C# Program to Find Sum of Natural Numbers

Sum of Natural Numbers in C#. The Natural number is positive integer. It starts from 1 and increment to infinity : 1,2,3,4,…etc.Sum of Natural Number Means : 1+2+3+5…the basic formula to calculate sum of natural number n(n+1)/2 where n is positive integer.Let’s see the the C# coding to find sum of natural number. Sum of […]

## Convert Fahrenheit to Celsius in C#

Write C#.Net program to enter Fahrenheit from keyboard and convert temperature from Fahrenheit to Celsius. how to convert Fahrenheit to Celsius in C# Example : Input : Enter temperature in Fahrenheit = 48 Output : Temperature in Celsius = 8.888889 Basic Conversion Formula C = ( F – 32 ) / 1.8; Here, F is […]

## Celsius to Fahrenheit in C#

Write C#.Net program to enter Celsius from keyboard and convert temperature from Celsius to Fahrenheit. how to convert Celsius to Fahrenheit in C# Example : Input : Enter temperature in Celsius = 50 Output :Temperature in Fahrenheit = 122 Basic Conversion Formula F = C * (9/5) + 32; or F = C * 1.8 […]

## Pattern programs in C#

pattern example in c#. Complete discussion of Patterns in C# Programming. Here i explained different kinds of patterns with running codes. Most interviewer ask different pattern to check logic. so i highly recommend you execute programs and try to understand the codes. Pattern Example 1 Pattern Example 2 Pattern Example 3 Pattern Example 4 Pattern […]

## C# program to find product of digits using recursion

product of digits of number using recursion Recursion is the process in which method calls itself directly or indirectly. product of digits means digit multiply of given number. example : digit product of 237 is solved as 2 * 3 * 7 = 42. Happy Coding…. Thanks.

## C# program to find product of digits

product of digits means digit multiplication of given number.example : digit multiplication of 234 is solved as 2 * 3 * 4 = 24. we can do Multiply of digits of a number using while loop , for loop , do while loop or recursive function. Example 1 : product of digits of a number […]

## C# program to find sum of digits using recursion

sum of digits of number using recursionRecursion is the process in which method calls itself directly or indirectly.sum of digits means digit sum of given number.example : digit sum of 237 is solved as 2 + 3 + 7 = 12. Happy Coding…Thanks.

## C# program to find sum of digits

sum of digits means digit sum of given number.example : digit sum 0f 234 is solved as 2 + 3 + 4 = 9. we can do Sum of digits of a number using while loop , for loop , do while loop or recursive function. Example 1 : Sum of digits of a number […]

## Generate Random Numbers in C#

Random Class : It is used to generate pseudo-random number. Each execution it returns different values. NextBytes : It Fills the elements of a specified array of bytes with random numbers. Random.Next() Method : It Returns a random integers/characters NextDouble : Returns a random floating-point number that is greater than or equal to 0.0 and […]

## Addition of two numbers in C#

C# Program to Add Two Numbers. Hello friends,this blog i have written 3 different program to add two number in C#.Net. Add two numbers is the basic c# program. it must be practice by new learner. Inside the code. i was using 3 important methods that often use in C# programming. Write Method : Writes […]