## 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
- Check whether the triangle is valid or not if angles are given
- Largest and smallest digit of a number
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Find the volume of rectangular right wedge
- 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
- Find the first N integers such that the sum of their digits is equal to 10
- 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
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Time taken per hour for stoppage of Car
- Find the number which when added to the given ratio a : b, the ratio changes to c : d
- Maximum number of line intersections formed through intersection of N planes
- Find the remaining balance after the transaction

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 »