## PHP | Check if a number is Perfect number

A perfect number is a number if it is equal to the sum of its factors,that is original number is equal to sum of all… Read More »

- Program to find the Nth Prime Number
- Find the character made by adding all the characters of the given string
- 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
- Generate an array having Bitwise AND of the previous and the next element
- Find the remainder when First digit of a number is divided by its Last digit
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Maximum number of line intersections formed through intersection of N planes
- Find the remaining balance after the transaction

A perfect number is a number if it is equal to the sum of its factors,that is original number is equal to sum of all… Read More »

Given a number, we need to check whether it is prime or not in PHP. General approach for prime check is discussed here. In this… Read More »

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 »