Arnab Chakraborty has Published 3734 Articles

What is a Computer language?

Arnab Chakraborty

Arnab Chakraborty

Updated on 04-Oct-2019 11:09:46

13K+ Views

To communicate with the computers, we need some languages. These are computer languages.There are mainly three different languages with the help of which we can develop computer programs. And they are –Machine Level languageAssembly Level Language andHigh Level LanguageMachine Level LanguageComputer can understand only the language of Digital Electronics. Digital ... Read More

Check if a number is Palindrome in PL/SQLs

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 10:42:03

9K+ Views

In this section we will see how to check whether a number is Palindrome or not using the PL/SQL. In PL/SQL code, some group of commands are arranged within a block of related declaration of statements.A number is palindrome if the number, and the reverse of that number are same. ... Read More

Check if a number is Full Prime in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 10:37:39

388 Views

Here we will see, how to check, whether a number is full prime or not. A number is said to be a full prime, if it is prime, and all of its digits are also prime. Suppose a number is 37, this is full prime. But 97 is not full ... Read More

Check if a number is a power of another number in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 09:13:37

646 Views

Here we will see, whether a number is power of another number or not. Suppose a number 125, and another number 5 is given. So it will return true when it finds that 125 is power of 5. In this case it is true. 125 = 53.AlgorithmisRepresentPower(x, y): Begin   ... Read More

Check if a number has same number of set and unset bits in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 09:00:47

299 Views

In this section we will check whether a number has same number of set bits and unset bits or not. Suppose the number 12 is there. Its binary representation is 1100. This has same number of 0s and 1s.The approach is simple. We will check each bit of the number, ... Read More

Check if a number can be written as sum of three consecutive integers in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:57:56

305 Views

In this section we will see, whether a number can be represented as tree consecutive numbers or not. Suppose a number is 27. This can be represented as 8 + 9 + 10.This can be solved in two different approach. The first approach is Naïve approach. In that approach, we ... Read More

Check if a number can be represented as a sum of 2 triangular numbers in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:39:47

227 Views

In this section, we will see if we can express one number as the sum of two triangular numbers or not. The triangular numbers are like below −From the example, we can see that 1, 3, 6, 10 are some triangular numbers. We need to express a number N (say ... Read More

Check if a number can be expressed as a^b in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:29:51

368 Views

Here we will check whether we can represent a number like ab or not. Suppose a number 125 is present. This can be represented as 53. Another number 91 cannot be represented as power of some integer value.AlgorithmisRepresentPower(num): Begin    if num = 1, then return true    for i := 2, i2

Check if a large number is divisible by 9 or not in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:18:34

347 Views

Here we will see how to check a number is divisible by 9 or not. In this case the number is very large number. So we put the number as string.A number will be divisible by 9, if the sum of digits is divisible by 9.Example Live Demo#include using namespace ... Read More

Check if a large number is divisible by 8 or not in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:14:44

495 Views

Here we will see how to check a number is divisible by 8 or not. In this case the number is very large number. So we put the number as string.A number will be divisible by 8, if the number formed by last three digits are divisible by 8.Example Live Demo#include ... Read More

Advertisements