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 »
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 »