C# Assignment Operators

These operators are used in a program to assign a value of the right-hand side to the left-hand side as shown below. You can combine write in short version such as instead of writing, int a = a+5, you can write it as a += 5. Following are the list of assignment operators used in C#. Operator … Read more

C# Arithmetic Operators

Arithmetic Operators are used to perform mathematical operations on operands such as addition, subtraction, multiplication, division etc. The following are the Arithmetic Operators operator description + additionadds two operands. eg, a+b. – subtractionsubtracts two operands. eg, a-b. * multiplicationmultiplies two operands. eg, a*b. / divisiondivides the operand by the second. eg, a/b. % moduloreturns the … Read more

C# Operators

Operators are the foundation of any programming language, the program is incomplete without the operators as we use them in all of our programs. Operators are the symbol that performs a specific mathematical or logical operation on operands.Example: Addition : 2 + 3, where 2 and 3 are the operands and + is the operator. … Read more

Type Conversion in C++

C++ programming allows us to convert the variables from one data type to another. A type cast basically means the conversion of one data type to another. There are two types of conversion in C++: Implicit Conversion Explicit Conversion (or type casting) Implicit Conversion Implicit type conversion which is also known as ‘Automatic type conversion’, … Read more

C# Program Structure

Before we begin further in this tutorial, it is important to know the basic building of C# programming. You need to have the basic knowledge on what C# program structure contain of. C# Program Structure Let us check the basic program written in C#. After execution of the above program, following output will be displayed. … Read more

C# Features

C# is an Object0oriented programming having many features. Some of the main features are explained briefly below, point by point. What are the Features of C++ programming Language? Simple and easy to use Modern and General-purpose Type safe (security) Object-Oriented language C# is Interoperability, Scalable and Updatable Component-Oriented and Structured Programming Language Rich in Library … Read more

Sphenic Number in Java

In this tutorial, we will start by learning what is Sphenic Number and write a Java Program to check for the Sphenic Number. Sphenic Number A Sphenic Number is a positive integer n which is a product of exactly three distinct prime numbers. Or we can say that n is a sphenic integer if n = a * b … Read more

C++ Increment and Decrement Operators

Increment and Decrement Operators are the Unary Operators as they operate on a single operand. They are ++ and — operators. ++ is used to increase the value by 1 and — is used to decrease the value by 1. There are two kinds of Increment and Decrement Operators. Post-Increment or Post-Decrement:First, the value is … Read more

C++ Arithmetic Operators

Arithmetic Operators the symbols that are used to perform mathematical operations on operands such as addition, subtraction, multiplication, division etc. operator description + additionadds two operands. eg, a+b. – subtractionsubtracts two operands. eg, a-b. * multiplicationmultiplies two operands. eg, a*b. / divisiondivides the operand by the second. eg, a/b. % moduloreturns the remainder when the … Read more

C++ Assignment Operators

Assignment operators are used in a program to assign a value of the right-hand side to the left-hand side as shown below. These are the short version formed by combining the two operators. For example Instead of writing, int a = a+5, we can write a += 5. Following are the list of assignment operators used in … Read more