Arjun Thakur has Published 1214 Articles

Prime factors in java

Arjun Thakur

Arjun Thakur

Updated on 06-Nov-2023 03:33:46

23K+ Views

Factors are the numbers we multiply to get another number.factors of 14 are 2 and 7, because 2 × 7 = 14.Some numbers can be factored in more than one way.16 can be factored as 1 × 16, 2 × 8, or 4 × 4.A number that can only be ... Read More

ATM Networks

Arjun Thakur

Arjun Thakur

Updated on 04-Nov-2023 01:28:47

21K+ Views

ATM and ATM NetworksATM stands for Asynchronous Transfer Mode. It is a switching technique that uses time division multiplexing (TDM) for data communications.ATM networks are connection oriented networks for cell relay that supports voice, video and data communications. It encodes data into small fixed - size cells so that they ... Read More

Add key-value pair in C# Dictionary

Arjun Thakur

Arjun Thakur

Updated on 03-Nov-2023 21:22:42

23K+ Views

To add key-value pair in C# Dictionary, firstly declare a Dictionary.IDictionary d = new Dictionary();Now, add elements with KeyValuePair.d.Add(new KeyValuePair(1, "TVs")); d.Add(new KeyValuePair(2, "Appliances")); d.Add(new KeyValuePair(3, "Mobile"));After adding elements, let us display the key-value pair.Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main() {   ... Read More

Conversion of Gray Code to Binary

Arjun Thakur

Arjun Thakur

Updated on 31-Oct-2023 21:52:24

47K+ Views

The reflected binary code or Gray code is an ordering of the binary numeral system such that two successive values differ in only one bit (binary digit). Gray codes are very useful in the normal sequence of binary numbers generated by the hardware that may cause an error or ambiguity ... Read More

How to Convert Decimal to Hexadecimal?

Arjun Thakur

Arjun Thakur

Updated on 31-Oct-2023 13:21:07

59K+ Views

Decimal system is most familiar number system to the general public. It is base 10 which has only 10 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Whereas Hexadecimal system is most familiar number system color representation in Computers or digital systems. It is base ... Read More

Fixed Point and Floating Point Number Representations

Arjun Thakur

Arjun Thakur

Updated on 31-Oct-2023 13:12:37

73K+ Views

Digital Computers use Binary number system to represent all types of information inside the computers. Alphanumeric characters are represented using binary bits (i.e., 0 and 1). Digital representations are easier to design, storage is easy, accuracy and precision are greater.There are various types of number representation techniques for digital number ... Read More

How to Convert Decimal to Binary?

Arjun Thakur

Arjun Thakur

Updated on 31-Oct-2023 04:52:45

82K+ Views

Decimal number is most familiar number system to the general public. It is base 10 which has only 10 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Whereas Binary number is most familiar number system to the digital systems, networking, and computer professionals. It is ... Read More

How to Convert Binary to Hexadecimal?

Arjun Thakur

Arjun Thakur

Updated on 31-Oct-2023 04:38:18

120K+ Views

Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other ... Read More

Get record count for all tables in MySQL database?

Arjun Thakur

Arjun Thakur

Updated on 22-Oct-2023 02:47:04

21K+ Views

To get the count of all the records in MySQL tables, we can use TABLE_ROWS with aggregate function SUM. The syntax is as follows. SELECT SUM(TABLE_ROWS) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'yourDatabaseName'; Apply the above syntax in order to get the count ... Read More

How to read inputs as integers in C#?

Arjun Thakur

Arjun Thakur

Updated on 22-Oct-2023 02:02:33

23K+ Views

To read inputs as integers in C#, use the Convert.ToInt32() method.res = Convert.ToInt32(val);Let us see how −The Convert.ToInt32 converts the specified string representation of a number to an equivalent 32-bit signed integer.Firstly, read the console input −string val; val = Console.ReadLine();After reading, convert it to an integer.int res; res = ... Read More

1 2 3 4 5 ... 122 Next
Advertisements