Tag: C++ Program
-
C++Diamond Pattern Using Numbers
Program code: Output: Note: also read about Floyd’s Triangle Follow Me Please follow me to read my latest post on programming…
November 8, 2022
-
C++Find Max Number Among the Given Three Number Using If/Else Statements
n1 is compared to n2. If n1 is larger than n2, it is compared to n3. If it is greater than n3…
November 11, 2022
-
C++Check for palindrome number
A palindrome number is a number that remains the same when digits are reversed. For example, the number 125521 is a palindrome…
November 12, 2022
-
C++Swap Two Numbers Without Using Third Variable
By using the + and – operators, we can swap two numbers without using a third variable. Main logic: Program…
November 12, 2022
-
C++Program To Find the grade of the student
Find the grade of the student based on the marks obtained in five subjects. Let the grade be calculated based…
November 17, 2022
-
C++Convert Decimal to Binary
Given a decimal number as input, we need to write a program to convert the given decimal number into an…
November 17, 2022
-
C++Find Fibonacci Series
The Fibonacci Series generates the next number by adding two preceding numbers. The Fibonacci sequence begins with two numbers, F0…
November 18, 2022
-
C++Program to Find GCD
The largest number that divides two or more numbers is the Greatest Common Divisor (GCD) for those numbers. For example:…
November 20, 2022
-
C++Factorial of a given Number
What is Factorial of a number? The product of all positive descending integers is the factorial of n. n! represents…
November 23, 2022
-
C++Armstrong Number in C++
What is Armstrong Number? The Armstrong number is a number that is equal to the sum of its digits’ cubes….
November 23, 2022
-
C++Find the Reverse of a Number
When a number is reversed, the digits are rearranged in reverse order, starting with the last digit, then the second-to-last…
November 27, 2022
-
C++Program to check Palindrome string
A string is said to be a palindrome if the reverse of the string is the same as the string….
December 3, 2022