DotNet Lab Programs using C#
- Write a program in C# that accepts the marks of 5 subjects and finds the sum and percentage marks obtained by the student.
- Write a program in C# that calculates the Simple Interest and Compound Interest. (The Principal, Amount, Rate of Interest and Time are entered through the keyboard).
- Write a program in C# to calculate the area and circumference of a circle.
- Write a program in C# that accepts the temperature in Centigrade and converts into Fahrenheit.
- Write a program in C# that accepts the temperature in Fahrenheit and converts into Centigrade.
- Write a program in C# that swaps values of two variables using a third variable.
- Write a program in C# that swaps values of two variables without using a third variable.
- Write a program in C# that checks whether the two numbers entered by the user are equal or not.
- Write a program in C# to find the greatest of three numbers.
- Write a program in C# that finds whether a given number is even or odd.
- Write a program in C# that tells whether a given year is a leap year or not.
- Write a program in C# to demonstrate the use of switch case statement.
- Write a program in C# to understand the concept of pointers.
- Write a program in C# to print the sum of all numbers up to a given number.
- Write a program in C# to find the factorial of a given number.
- Write a program in C# to print sum of even numbers from 1 to N numbers.
- Write a program in C# to print sum of odd numbers from 1 to N numbers.
- Write a program in C# to print the Fibonacci series.
- Write a program in C# to check whether the entered number is prime or not.
- Write a program in C# to find the sum of digits of the entered number.
- Write a program in C# to find the reverse of a number.
- Write a program in C# to print Armstrong numbers from 1 to 100.
- Write a program in C# to convert binary number into decimal number.
- Write a program in C# to convert decimal number into binary number.
- Write a program in C# that simply takes elements of the array from the user and finds the sum of these elements.
- Write a program in C# that inputs two arrays and saves sum of corresponding elements of these arrays in a third array and prints.
- Write a program in C# to find the minimum and maximum element of the array.
- Write a program in C# to search an element in a array using Linear Search.
- Write a program in C# to sort the elements of the array in ascending order using Bubble Sort technique.
- Write a program in C# to add and multiply two matrices of order nxn.
- Write a program in C# that finds the sum of diagonal elements of a mxn matrix.
- Write a program in C# to Check Whether a String Palindrome is or not.
No comments:
Post a comment