Arnab Chakraborty has Published 4293 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

207 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

596 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

468 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

207 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

209 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

260 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

175 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

3K+ 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

427 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 directed graph is connected or not in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 25-Sep-2019 14:54:52

2K+ Views

To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected.For the directed graph, we will start traversing from all nodes to check connectivity. Sometimes ... Read More

Advertisements