Arnab Chakraborty has Published 3734 Articles

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

Arnab Chakraborty

Arnab Chakraborty

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

246 Views

Here we will see how to check a number is divisible by 75 or not. In this case the number is very large number. So we put the number as string.A number will be divisible by 75, when the number is divisible by 3 and also divisible by 25. if ... Read More

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

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:09:21

641 Views

Here we will see how to check a number is divisible by 5 or not. In this case the number is very large number. So we put the number as string.To check whether a number is divisible by 5, So to check divisibility by 5, we have to see the ... Read More

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

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 08:04:05

508 Views

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

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

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 07:58:01

246 Views

Here we will see how to check a number is divisible by 25 or not. In this case the number is very large number. So we put the number as string.A number will be divisible by 25, when the last two digits are 00, or they are divisible by 25.Example Live ... Read More

Check if a large number is divisible by 20 in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 07:55:42

246 Views

Here we will see how to check a number is divisible by 20 or not. In this case the number is very large number. So we put the number as string.A number will be divisible by 20, when that is divisible by 10, and after dividing 10, the remaining number ... Read More

Check if a large number is divisible by 2, 3 and 5 or not in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 07:53:14

304 Views

Here we will see how to check a number is divisible by 2, 3 and 5 or not. In this case the number is very large number. So we put the number as string.A number will be divisible by 2, 3 and 5 if that number is divisible by LCM ... Read More

Check if a large number is divisibility by 15 in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 07:48:52

204 Views

Here we will see how to check a number is divisible by 15 or not. In this case the number is very large number. So we put the number as string.To check whether a number is divisible by 15, if the number is divisible by 5, and divisible by 3. ... Read More

Check if a given year is leap year in PL/SQL

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 07:46:15

4K+ Views

Here we will see how to check given year is leap year or not, using PL/SQL. In PL/SQL code, some group of commands are arranged within a block of related declaration of statements.The leap year checking algorithm is like below.AlgorithmisLeapYear(year): begin    if year is divisible by 4 and not ... Read More

Check if a given string is made up of two alternating characters in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Sep-2019 07:43:32

492 Views

Here we will see how to check a string is made up of alternating characters or not. If a string is like XYXYXY, it is valid, if a string is like ABCD, that is invalid.The approach is simple. We will check whether all ith character and i+2 th character are ... Read More

Check if a binary string has a 0 between 1s or not in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 25-Sep-2019 13:56:06

215 Views

Here we will see one interesting problem. We have to check whether a string has 0 in between a 1s or not. If not, then the string is valid, otherwise invalid.Suppose there are three strings −100011110100000111110001111101111From these three strings, only B is valid, because there is no 0 inside the ... Read More

Advertisements