Half Pyramid of Alphabets in C

In this tutorial, we will learn and code alphabet patterns in C programming language specifically the Half pyramid of alphabets in C programming. However, in this tutorial, we will create a pyramid character pattern in C using for loop. So you may go through the following topic in C. for loop in C Pattern 1: … Read more

Inverted Half Pyramid Pattern of Alphabets in C

In this tutorial, we will write a C program to print half Pyramid using alphabets/characters. Before that, you may go through the following topic in C. for loop in C Pattern 1: C program for character/alphabet. Enter the no. of rows: 6F F F F F FE E E E ED D D DC C … Read more

C++ Program to Multiply two Complex Numbers

In this tutorial, we will write a C++ program to perform a multiplication on two complex numbers. Before that, you may go through the following topic in java. C++ function C++ struct C++ Program to Multiply two Complex Numbers using Struct Output: Enter first complex number (a+bi) : 2+3iEnter second complex number (a+bi) : 2+3i … Read more

Java Program to Print Multiplication Table

In this tutorial, we will write a Java program to print a multiplication table for any number. Before that, you may go through the following topic in java. Java – while loop Java Program to Print Multiplication Table using for loop Source code: The user needs to enter the number for which the table is … Read more

C Program to Print Multiplication Table

In this tutorial, we will write a C program to print a multiplication table for any number. Before that, you may go through the following topic in C. C- while loop C Program to Print Multiplication Table using While loop Source code: The user needs to enter the number for which the table is to … Read more

Static block in Java

A static block in a program is a block which is associated with a static keyword. The static block executes when the classloader loads the class. A static block is invoked before the main() method in java. Syntax: ………static { …….statements}……. Let us go through a static block example. Static block in Java with Example … Read more

Mystery Number in C#

In this tutorial, we will write a c# program to check if a number is a Mystery Number. Before that, we may go through the following topic in c#. methods in c# A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be the … Read more

Mystery Number in C++

In this tutorial, we will write a C++ program to check if a number is a Mystery Number. Before that, we may go through the following topic in C++. methods in C++ A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be the … Read more

Mystery Number in Java

In this tutorial, we will write a Java program to check if a number is a Mystery Number. Before that, we may go through the following topic in java. methods in Java A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be the … Read more

Java Program to Find Smallest of Three Numbers Using Ternary Operator

In this tutorial, we will write a program in java to find minimum of three numbers using conditional operator. Before that, you may go through the following topics in java. Ternary Operator in Java Smallest of three numbers using ternary operator in java Output: Enter the first Number:20Enter the second Number:10Enter the third Number:30Smallest Number … Read more