Tag: C++ programming language
-
C++Even Or Odd number check
A number is even if it is divisible by two, and odd if it is not divisible by two. Some…
November 5, 2022
-
C++Program to Find ASCII Value of a Character
In C++ programming, a character variable stores an ASCII value (an integer number between 0 and 127) rather than the character…
November 5, 2022
-
C++Sum Of Series 1 + 2 + 3 + 4 + 5 + 6 . . . . n
The sum of a series consisting of n terms beginning with “1,” is equivalent to the sum of n natural numbers…
November 5, 2022
-
C++Sum Of Series 1 + 1 / 2 ^ 2 +. . . . 1 / n ^ n
A program to compute the sum of a given series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n. For this,…
November 5, 2022
-
C++Sum Of Series 1 + 2 + 4 + 8 + 16 + 32 + . . n
Program code: Output: Main Logic used here: Note: also read about Sum Of Series 1 + 2 + 3 + 4…
November 5, 2022
-
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