## PHP | check if a number is Even or Odd

A number is called even if the number is divisible by 2 and is called odd if it is not divisible by 2. Given a… Read More »

- Program to find the Nth Prime Number
- Predict the winner in Coin Game
- Check whether the triangle is valid or not if angles are given
- Count of quadruplets with given Sum
- Largest and smallest digit of a number
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Blog | Programming Guidelines
- Find the volume of rectangular right wedge
- Number of positions such that adding K to the element is greater than sum of all other elements
- Find number of magical pairs of string of length L
- Find the character made by adding all the characters of the given string
- Find the sum of the first half and second half elements of an array
- Count the number of occurrences of a particular digit in a number
- Check whether Quadrilateral is valid or not if angles are given
- Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
- Find the first N integers such that the sum of their digits is equal to 10
- Compare sum of first N-1 elements to Nth element of an array
- Minimum number of steps to convert a given matrix into Upper Hessenberg matrix
- Generate an array having Bitwise AND of the previous and the next element
- Find the sum of Eigen Values of the given N*N matrix
- Find the remainder when First digit of a number is divided by its Last digit
- Find the height of a right-angled triangle whose area is X times its base
- Program to find the number of men initially
- Distance between two parallel lines
- Area of triangle formed by the axes of co-ordinates and a given straight line
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Find the Diameter or Longest chord of a Circle
- Total number of days taken to complete the task if after certain days one person leaves
- Check if given two straight lines are identical or not
- Time taken per hour for stoppage of Car

A number is called even if the number is divisible by 2 and is called odd if it is not divisible by 2. Given a… Read More »

Just like we humans can get infected and fall ill, our computers can also get infected while they are connected to the Internet. Viruses can… Read More »

Given a string and the task is to count vowels, consonant, digits and special character in string. Special character also contains the white space. Examples:… Read More »

What is a Flowchart? Flowchart is a graphical representation of an algorithm. Programmers often use it as a program-planning tool to solve a problem. It… Read More »

Prerequisite : Functions in C/C++ A function in C can be called either with arguments or without arguments. These function may or may not return… Read More »

Given an array, write functions to find minimum and maximum elements in it. C++ filter_none edit close play_arrow link brightness_4 code // CPP program to… Read More »

Unicode is a universal encoding system to provide a comprehensive character set and was created by the Unicode consortium (a group of multilingual software manufacturers).… Read More »

The useful input/output manipulators are std::setbase, std::setw and std::setfill. These are defined in and are quite useful functions. std::base : Set basefield flag; Sets the… Read More »

Increment operator It is used to increment a value by 1. There are two varieties of increment operator: Post-Increment : Value is first used for… Read More »

Given a 2D square matrix, find sum of elements in Principal and Secondary diagonals. For example, consider the following 4 X 4 input matrix. A00… Read More »

As the name suggests the name constants is given to such variables or values in C/C++ programming language which cannot be modified once they are… Read More »

Error is an illegal operation performed by the user which results in abnormal working of the program. Programming errors often remain undetected until the program… Read More »

You are given an equilateral triangle of three matchsticks like given figure. What is the minimum number of sticks needed to add three more equilateral… Read More »

Given a string, count the total number of vowels (a, e, i, o, u) in it. There are two methods to count total number of… Read More »

Unary operator: are operators that act upon a single operand to produce a new value. Types of unary operators: unary minus(-) increment(++) decrement(- -) NOT(!)… Read More »