Category: C++
-
C++Pattern Program Using Star
C++ implementation for pattern printing. Pattern 1: Program code: Output: Pattern 2: Program code: Output: Pattern 3: Program code: Output:…
November 7, 2022
-
C++Numeric 1-121-12321 Pyramid Pattern
In this program, we use numbers to generate a pyramid-like pattern. And numbers follow a pattern similar to this: 1…
November 7, 2022
-
C++Christmas Tree Pattern
C++ programming using “*” for Christmas Tree Pattern Program code: Output: Note: also read about Pattern Program Using Star Follow Me…
November 7, 2022
-
C++Pascals triangle
Pascals triangle is a triangular array of binomial coefficients. The numbers outside Pascals triangle are all “0”. These “0s” are…
November 8, 2022
-
C++Floyd’s Triangle
Floyd’s triangle is a triangular array of natural numbers and it is named after Robert Floyd, a renowned computer scientist popularly…
November 8, 2022
-
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++Check for Prime number
A prime number is greater than one and can be divided by one or itself. In other words, prime numbers…
November 11, 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