##
Evil Number
July 18, 2017

An evil number is a non-negative number that has an even number of 1s in its binary expansion. (Binary Expansion – is representation of a… Read More »

July 18, 2017

An evil number is a non-negative number that has an even number of 1s in its binary expansion. (Binary Expansion – is representation of a… Read More »

July 10, 2017

For any given number n, print Hollow and solid Squares and Rhombus made with stars(*). Examples: Input : n = 4 Output : Solid Rhombus:… Read More »

For any given number n, print Hollow and solid Squares and Rhombus made with stars(*). Examples: Input : n = 4 Output : Solid Square:… Read More »

Given a number n, write a program to check whether given number is Adam Number or not. Adam number is a number when reversed, the… Read More »

July 6, 2017

Given a decimal number as input, we need to write a program to convert the given decimal number into equivalent hexadecimal number. i.e convert the… Read More »

July 4, 2017

Given a positive number n (n > 1), round-off this number to a given no. of significant digits, d. Examples: Input : n = 139.59… Read More »

July 1, 2017

Given two numbers, perform multiplication, subtraction and division operations on them, using ‘+’ arithmetic operator only. Recommended: Please try your approach on {IDE} first, before… Read More »

June 27, 2017

Given a positive integer n. Print the inverted triangular pattern (as described in the examples below) using recursive approach. Examples: Input : n = 5… Read More »

June 26, 2017

Given a number n, print triangular pattern. We are allowed to use only one loop. Example: Input: 7 Output: * * * * * *… Read More »

A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself. For example 145, sum of factorial… Read More »

June 22, 2017

Given a string, write a program to count the occurrence of Lowercase characters, Uppercase characters, Special characters and Numeric values. Examples: Input : #GeeKs01fOr@gEEks07 Output… Read More »

June 21, 2017

try() is used in Error and Exception Handling There are two kinds of errors : Syntax Error : Also known as Parsing Errors, most basic.… Read More »

Can we use keywords in place of operators in C++ ? Yes, certainly, we can. The ANSI C++ Standard has proposed keywords for several C++… Read More »

June 19, 2017

Prerequisite – Multidimensional Arrays in C / C++ Given a two dimensional array, Write a program to print lower triangular matrix and upper triangular matrix.… Read More »

Prerequisite – Array Basics Given an array, write a program to find the sum of values of even and odd index positions separately. Examples: Input… Read More »