Print Pascal Triangle using function Write a C++ Program to Print Pascal Triangle using function. Here’s simple Program to Print Pascal Triangle using function in C++ Programming Language. Pascal’s Triangle Pascal’s triangle is a triangular array of the binomial coefficients. Write a function that takes an integer value n as input and prints first n lines of

Sum and Average of n numbers using for loop Write a C++ Program to Find Sum and Average of n numbers using for loop. Here’s simple Program to Find Sum and Average of n numbers using for loop in C++ Programming Language. Average of n numbers Average of n numbers – The sum of all of

Find Power of a Number using for loop Write a C++ Program to Find Power of a Number using for loop. Here’s simple Program to Calculate Power of Number using for loop in C++ Programming Language. The program below takes two integers from the user (a base number and Power to base) and calculates the power. For

Sum of Digits of a Number using while loop Write a C++ Program to find Sum of Digits of a Number using while loop. Here’s simple Program to find Sum of Digits of Number using while loop in C++ Programming Language. Sum of Digits : : Sum of digits means addition of all the digits of any

Find Cube Root of a Number Write a C++ Program to find Cube Root of a Number. Here’s simple Program to find Cube Root of a Number using pow( ) function in C++ Programming Language. To find cube root of any number we need to find 0.3 power of any number. For example : : if you need

Square Root of a Number Write a C++ program to find Square Root of a Number. Here’s simple program to find Square Root of a Number using pow( ) function in C++ Programming Language. For calculate Square Root of a number we multiply number by 0.5 because square root of any number means power of 1/2

LCM of two numbers using functions Write a C++ program to find LCM of two numbers using functions. Here’s simple program to find LCM of two numbers using functions in C++ Programming Language. A common multiple is a number that is a multiple of two or more numbers. The common multiples of 3 and 4 are 0, 12,

HCF of Two Numbers using Functions Write a C++ Program to Calculate HCF of Two Numbers using Functions . Here’s simple C++ Program to Calculate HCF of Two Numbers using Functions in C++ Programming Language. HIGHEST COMMON FACTOR (H.C.F) The HCF of two (or more) numbers is the largest number that divides evenly into both numbers. In

Check whether a number is palindrome or not Write a C++ program to Check whether a number is palindrome or not using while loop. Here’s simple program to Check whether a number is palindrome or not using while loop in C++ Programming Language. A Palindrome number is a number that remains the same when its digits

Largest of three numbers using nested if Write a C++ program to Find Largest of three numbers using nested if. Here’s simple program to Find Largest of three numbers using nested if in C++ Programming Language. Here is source code of the C++ program to Find Largest of three numbers using nested if. The C++ program