CPP All : Number Varieties and Crunches

Program takes integer input and finds if given number is an armstrong number

To check if given number is same even if reversed (Palindrome).

Printing a positive integer in reverse form. for e.g. printing 123 as 321.

Check if the sum of all the divisors of a number brings the number itself.

Check if a number has only two factors 1 and the number itself. The 1 and n exclusion technique does not test division with these two obvious divisors and does it for all other possible divisors.

Using a loop technique and successive division by 10 to extract first and last digit of a given number and then printing it.

Program to find Highest Common Factor (HCF), also called the Greatest Common Divisor between the two numbers entered by the user.

Program to find the Least Common Multiple (LCM), also called the smallest common multiple between the two numbers entered by the user.

A program to check if the given integer by the user is a perfect square of some integer number.

A program to check if the given integer by the user is a perfect square of some integer number by using the square root of double to int conversion and then comparison method.

Find if the given number is a triangular number by successive summation of natural numbers until it matches the given number.

Find if the given number is a triangular number by finding if the 8*n+1 is a perfect square without using the sqrt function of the math library

Find if the given number is a triangular number by finding if the 8*n+1 is a perfect square by using the rounded square root.

Find if the given number is a triangular number by finding if the 8*n+1 is a perfect square by using the double to int conversion.

Test if a number is divisible by 7 or the last digit is 7, means whether the number is a buzz number.

Write a program where a function of prototype int ispalin(int) is written, wh

Write a program to reverse the given integer number.using a separately called

Write a C++ program to collect a positive integer from the user and the check

Find syntactical errors in the following program and rewrite the program afte

Code Sheets:18 Solved Problems:6

×