Rabecca Fatima

Christmas Tree Pattern

C++ programming using "*" for Christmas Tree Pattern Program code: #include<iostream> using namespace std; int main() { int width, height,…

3 years ago

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…

3 years ago

Pattern Program Using Star

C++ implementation for pattern printing. Pattern 1: Program code: #include <iostream> using namespace std; void pattern(int n) { // Outer…

3 years ago

Introduction – Python programming language

What is Python? Python is a high-level, general-purpose, dynamic, interpreted programming language that is widely used. Guido Van Rossum is known as…

3 years ago

Sum Of Series 1 + 2 + 4 + 8 + 16 + 32 + . . n

Program code: #include <iostream> #include <math.h> using namespace std; //calculating the sum of the series double calc_sum(int n) { int…

3 years ago

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,…

3 years ago

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…

3 years ago

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…

3 years ago

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…

3 years ago

Adding two numbers

Program code: #include<iostream> using namespace std; int main() { //variable declaration int x, y; //variable declaration and initialization int sum=0;…

3 years ago