1. Write a C# program to compare any two strings.
2. Write a C# program to demonstrate the use of out and params modifier.
3. Write a C# program to find the sum of two numbers.
4. Write a C# program to find product of two numbers.
5. Write a C# program to add, subtract, multiply and divide two numbers.
6. Write a C# program to find a simple interest.
7. Write a C# program to find the area of a rectangle.
8. Write a C# program to find the area of a circle.
9. Write a C# program to find the largest number between two numbers.
10. Write a C# program to find the smallest number between two numbers.
11. Write a C# program to find the largest number among three numbers.
12. Write a C# program to find the smallest number among three numbers.
13. Write a C# program to check whether a number is odd or even.
14. Write a C# program to check whether a number is divisible by 7 or not.
15. Write a C# program to check whether a number is divisible by 5 and 10.
16. Write a C# program to check whether a number is divisible y 7 but not by 13.
17. Write a C# program to input CP and SP and check profit or loss. Also find the profit or loss
amount.
18. Write a C# program to find print number from 1 to 100.
19. Write a C# program to find the sum of numbers from 5 to 100.
20. Write a C# program to check whether a number is prime or not.
21. Write a C# program to print prime numbers from 1 to 100.
22. Write a C# program to show the use of ternary operator.
23. Write a C# program to show the use of switch case statement.
24. Write a C# program to show the use of auto-increment and auto-decrement operators.
25. Write a C# program to generate multiplication table from 1 to 10.
26. Write a C# program to find factorial of any number.
27. Write a C# program to show the use of break, continue and return.
28. Write a C# program to print the following pattern:
i. *
**
***
****
*****
ii. *****
****
***
**
*
iii. 1
12
123
1234
12345
iv. 1
22
333
4444
55555
29. Write a C# program to find sum of 20 numbers in an array.
30. Write a C# program to find the maximum and minimum number from array.
31. Write a C# program to sort ‘n’ numbers in ascending order.
32. Write a C# program to sort name of 10 person in alphabetical order.
33. Write a C# program to add any two matrices.
34. Write a C# program to find product of any two matrices.
35. Write a C# program to overload unary operator.
36. Write a C# program to overload binary operators.
37. Write a C# program using struct.
38. Write a C# program to create generic class and generic methods.
39. Write a C# program to demonstrate exception handling.
40. Write a C# program to demonstrate nested try block.
41. Write a C# program to demonstrate multiple catch.
42. Write a C# program to demonstrate the throw keyword.
43. Write a C# program to explaining re-throwing of exception.
44. Write a C# program to demonstrate LINQ query.
45. Write a C# program to demonstrate where condition in LINQ.
46. Write a C# program to demonstrate join, concat and union operation in LINQ.
47. Write a C# program to demonstrate aggregate functions.
48. Write a C# program to demonstrate order by operation in LINQ.
49. Write a C# program to demonstrate group by operation in LINQ.
50. Write a C# program to show insert and select operation in database.
51. Write a C# program using ADO.NET to extract name of those students who lives in Kathmandu
district, assuming that the student table has four attribute (ID, name, district, and age).
52. Write a C# program to demonstrate complete CRUD operation of a student.
53. Create student registration form in ASP.NET with proper form validations.
54. Write a program ASP.NET to find simple interest. Use text fields for inputs and label for output.
Your program should display the result when the user presses a button.
55. Write a C# program for entering college general information in one ASP page and display it in
another page.