-
Write a C# program that checks if a given number is even or odd using an if-else statement.
-
If you have two integers stored in variables var1 and var2, what Boolean test can you perform to see if one or the other (but not both) is greater than 10?
-
Develop a C# program that accepts two integers and performs arithmetic operations (addition, subtraction, multiplication, division) based on user input using switch-case statements and loop (Make it menu driven program).
-
Write a C# program to demonstrate the use of enumerations. Create an enum representing the days of the week, and write code to display a day’s name based on the user input.
-
Design a C# program that declares an array of integers, fills it with user input, and then finds the maximum and minimum values in the array.
-
Write a C# program to reverse a string input by the user. Display both the original and reversed strings.
-
Write a C# program to print the first 10 prime numbers using a for loop.
-
Design a C# program that calculates the factorial of a given number using a for loop.
-
Design a C# program that calculates the sum of digits of a number entered by the user using a while loop.
-
Write a C# program to repeatedly ask the user to enter a number until they enter a negative number. Display the sum of all positive numbers entered using a do-while loop.
-
Write a C# program to print a pyramid pattern of stars (*) using nested for loops. The height of the pyramid should be entered by the user.
-
Design a C# program that skips printing the number 5 in a loop from 1 to 10 using the continue statement.
-
Write a C# program that finds the first 10 Armstrong numbers using a for loop. Use the break statement to exit the loop when 10 Armstrong numbers have been found.
-
Create a C# program to demonstrate the difference between passing parameters by value and by reference. Use a method that modifies the values of variables passed both ways and display the results before and after the method call.
-
Design a C# program that uses a method with a variable-length parameter list to calculate the average of a set of numbers provided by the user. Display the average value.
-
Create a C# program that demonstrates boxing and unboxing. Store an integer in an object (boxing) and then extract it back into an integer variable (unboxing), showing the difference in behavior.
-
Write a code in C# to demonstrate the concept of Class & Object.
-
Write a code in C# to demonstrate the concept of Constructor in C#.
-
Write a code in C# to demonstrate the concept of Constructor Overloading in C#.
-
Write a code in C# to demonstrate the concept of Copy Constructor.
-
Write a code in C# to demonstrate Get & Set Properties in C#.
-
Write a code in C# to demonstrate the concept of Method Overloading.
-
Write a code in C# to demonstrate the concept of Method Overriding (Runtime Polymorphism).
-
Write a code in C# to perform Overloading of Operators.
-
Write a code in C# to demonstrate the concept of an Interface by implementing its method in a class.
-
Write a code in C# to demonstrate the concept of Abstract Class.
-
Write a code in C# to demonstrate the difference between an Abstract Class & an Interface.
-
Write a code in C# to handle System Exception.
-
Create a Windows Form application for performing the operation of a Calculator.
-
Create a Windows Form application to demonstrate the events of Checkbox control.
-
Create a Windows Form application to accept a number from the end user & calculate its square. Handle all possible system exceptions.
-
Create an application to demonstrate the connection of ADO.Net objects.
-
Create an application to demonstrate the Data Adapter object in ADO.Net.