Sunidhi Bansal has Published 1100 Articles

Program for decimal to hexadecimal conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:19:35

1K+ Views

Given with a decimal number as an input, the task is to convert the given decimal number into a hexadecimal number.Hexadecimal number in computers is represented with base 16 and decimal number is represented with base 10 and represented with values 0 - 9 whereas hexadecimal number have digits starting ... Read More

Program for Decimal to Binary Conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:13:18

206 Views

Given with a decimal number as an input, the task is to convert the given decimal number into a binary number.Decimal number in computers is represented with base 10 and binary number is represented with base 2 as it has only two binary digits 0 and 1 whereas decimal numbers ... Read More

Program for Binary To Decimal Conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:08:55

257 Views

Given with a binary number as an input, the task is to convert the given binary number into a decimal number.Decimal number in computers is represented with base 10 and binary number is represented with base 2 as it has only two binary digits 0 and 1 whereas decimal numbers ... Read More

Program to convert IP address to hexadecimal in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:04:25

583 Views

Given with the input as an IP address value and the task is to represent the given IP address as its hexadecimal equivalent.What is IP addressIP address or Internet protocol is a unique number to that uniquely describes your hardware connected to a network. Internet means over the network and ... Read More

Program to convert KiloBytes to Bytes and Bits in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 07:59:50

832 Views

Given with the input as KiloBytes and the task is to convert the given input into number of bytes and bits.Bit − In computers, bit is the smallest unit represented with two integer value 0 and 1 and all the information in computer is processed as a sequence of these ... Read More

Program to convert given number of days in terms of Years, Weeks and Days in C

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 07:51:37

3K+ Views

You are given with number of days, and the task is to convert the given number of days in terms of years, weeks and days.Let us assume the number of days in a year =365Number of year = (number of days) / 365Explanation-: number of years will be the quotient ... Read More

Program to convert given Matrix to a Diagonal Matrix in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 07:47:09

478 Views

Given with the matrix of size nxn the task it to convert any type of given matrix to a diagonal matrix.What is a diagonal MatrixDiagonal matrix is the nxn matrix whose all the non-diagonal elements are zero and diagonal elements can be any value.Given below is the diagram of converting ... Read More

C Program for Armstrong Numbers

Sunidhi Bansal

Sunidhi Bansal

Updated on 23-Sep-2019 12:00:35

466 Views

We are given a task where we have to check a number n entered by the user, whether it’s Armstrong or not.An Armstrong number is when the sum of all the digits power by the number of digits or we can say order of digits n, is same as the ... Read More

Program for Area Of Square in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 23-Sep-2019 11:53:37

880 Views

We are given with a side of a rectangle and our task is to print the area of the square from that side.Square is 2-D plain figure which have 4 sides and forms 4 angles of 90degree each and all the sides are of equal shape. In other words we ... Read More

C++ Program for Area Of Square after N-th fold

Sunidhi Bansal

Sunidhi Bansal

Updated on 23-Sep-2019 11:50:02

95 Views

Given a side of a square and the number of fold, we have to find the Area of square after number of folds.A square is a 2-D shape like rectangle where all the sides are equal. And it’s all angles are equal to 90 degrees.While folding a square we −Fold ... Read More

Advertisements