Iqra Technology

C# if-else

❮ Previous Next ❯ If Else Statement in C# In C# programming, the if statement is used to test the condition. There are various types of if statements in C#. For Example: if statement if-else statement if-else-if ladder statement If Statement Basic Structure if (condition){     //code for execution} Scenario 1: Write a C# program that […]

C# if-else Read More »

C# Keywords

❮ Previous Next ❯ Keywords in C# 1. Type keyword These type keywords are fundamental in C#, allowing you to declare variables, define method return types, and manage data throughout your programs. Operator Description Example bool Represents Boolean values (true or false) bool male = true; char Represents a single character char letter = ‘A’;

C# Keywords Read More »

C# Operators

❮ Previous Next ❯ C# Operators In C#, operators are fundamental building blocks that allow you to perform various operations on data, such as arithmetic calculations, comparisons, and logical evaluations. Let’s explore some of the essential operators in C# and understand how they work. Arithmetic Operators: Operator Description Example Output + Addition int result =

C# Operators Read More »

C# Escape Sequence

❮ Previous Next ❯ Escape Sequences in C# Escape sequences are special characters that allow you to include non-printable characters within strings. They come in handy when you need to represent characters that cannot be typed directly into a string, such as tabs (insert one-character blank space), newline, or quotes(“ “). In C#, escape sequences

C# Escape Sequence Read More »

C# String DataType

❮ Previous Next ❯ Strings in C# A string in C# is a sequence of characters used to represent text. It is one of the most used data types in programming and is essential for handling textual data. Here’s a comprehensive explanation of what a string is, its characteristics, and how it is used:Creating a

C# String DataType Read More »