AmitDiwan has Published 10740 Articles

How to change the WindowHeight of the Console in C#?

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:44:04

164 Views

Use the Console.WindowHeight Property to change the WindowHeight of the Console.ExampleLet us now see an example −using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Demo {    public static void Main (string[] args) {       Console.InputEncoding = Encoding.ASCII;       Console.WriteLine("Input Encoding Scheme = ... Read More

How to change the visibility of the Cursor of Console in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:43:18

447 Views

To change the visibility of the Cursor, use the Console.CursorVisible property.ExampleLet us see an example −using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Demo {    public static void Main (string[] args) {       Console.BackgroundColor = ConsoleColor. Black;       Console.WriteLine("Background color changed = ... Read More

MathF.Log10() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:40:51

100 Views

The MathF.Log10() method in C# is used to return the base 10 logarithm of a specified number.SyntaxFollowing is the syntax −public static float Log10 (float val);Above, Val is the number whose logarithm is to be calculated.ExampleLet us now see an example to implement the MathF.Log10() method −using System; public class ... Read More

MathF.Log() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:38:15

92 Views

The MathF.Log() method in C# is used to return the logarithm of a specified number.SyntaxFollowing is the syntax −public static float Log (float val);Above, Val is the specified number whose natural (base e) logarithm to be calculated.ExampleLet us now see an example to implement the MathF.Log() method −using System; public ... Read More

MathF.IEEERemainder() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:36:09

85 Views

The MathF.IEEERemainder() method in C# is used to return the remainder resulting from the division of a specified number by another number.SyntaxFollowing is the syntax −public static float IEEERemainder (float dividend, double float);ExampleLet us now see an example to implement the MathF.IEEERemainder() method −using System; public class Demo {   ... Read More

MathF.Floor() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:32:56

168 Views

The MathF.Floor() method in C# is used to find the largest integer, which is less than or equal to the specified float value.SyntaxFollowing is the syntax −public static float Floor (float val);Above, the Val is the floating-point value.ExampleLet us now see an example to implement the MathF.Floor() method −using System; ... Read More

How to change the Output Encoding Scheme of the C# Console?

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:31:08

387 Views

Use the Console.OutputEncoding property in C# to change the Output Encoding Scheme in C#.ExampleLet us see an example −using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Demo {    public static void Main (string[] args) {       Console.BackgroundColor = ConsoleColor. Black;       Console.WriteLine("Background ... Read More

How to change the Input Encoding Scheme of the C# Console?

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:27:24

197 Views

To change the Input Encoding Scheme of the Console, use the Console.InputEncoding property.ExampleLet us see an example −using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq; using System.Text; class Demo {    public static void Main (string[] args) {       Console.BackgroundColor = ConsoleColor.Blue;       Console.WriteLine("Background color changed ... Read More

MathF.Min() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:25:24

122 Views

The MathF.Min() method in C# returns the smallest of the two specified numbers.SyntaxFollowing is the syntax −public static float Min (float val1, float val2);Above, val1 is the first number, whereas val2 is the second number. Both of these numbers are compared.ExampleLet us now see an example to implement the MathF.Min() ... Read More

MathF.Max() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 06:23:54

81 Views

The MathF.Max() method in C# returns the larger of the two specified numbers.SyntaxFollowing is the syntax −public static float Max (float val1, float val2);Above, val1 is the first number, whereas val2 is the second number. Both of these numbers are compared.ExampleLet us now see an example to implement the MathF.Max() ... Read More

Advertisements