Dotnet Programs:
o Write a simple console application to display "Hello, World!" on the screen.
o Create a program that takes two integers as input from the user and displays their
sum.
o Write a program that takes three numbers as input and outputs the largest number.
o Develop a program to calculate the factorial of a given number using a loop.
o Write a program that checks if a given string is a palindrome.
o Write a program to print the Fibonacci series up to a specified number of terms.
o Create a basic calculator that performs addition, subtraction, multiplication, and
division based on user input.
o Write a program to find the sum and average of all elements in an array.
o Develop a program that reverses a given string without using built-in functions.
o Write a program to check whether a given number is prime or not.
o Write a program that takes a number as input and determines if it is positive,
negative, or zero.
o Create a simple program that takes a day of the week as input (e.g., 1 for Monday,
2 for Tuesday) and prints the corresponding day name using a switch-case
statement.
o Write a program to print the multiplication table of a given number using a for
loop.
o Create a program that prints all even numbers from 1 to 100 using a while loop.
o Write a program that repeatedly asks the user to enter a number until they enter a
negative number.
o Develop a program to print a pyramid pattern using nested loops. For example:
*
***
*****
*******
o Write a program that prints numbers from 1 to 50 but skips multiples of 3 and
stops if the number exceeds 40.
o Create a program with a menu that allows the user to choose between various
operations (e.g., addition, subtraction, multiplication, division) and performs the
chosen operation based on user input.
o Write a program to find and print all prime numbers between two given numbers
using loops and conditional statements.
o Develop a program to calculate the sum of the digits of a given number using a
while loop.
o Write a program that takes two integers as input and performs addition,
subtraction, multiplication, division, and modulus operations. Display the results.
o Create a program that demonstrates the use of increment (++) and decrement (--)
operators. Display the values before and after the operations.
o Write a program that uses compound assignment operators (+=, -=, *=, /=) to
perform operations on two numbers and display the results.
o Develop a program that takes two integers as input and uses relational operators
(==, !=, >, <, >=, <=) to compare them. Print the results of the comparisons.
o Write a program that takes two boolean inputs and uses logical operators (&&, ||,
!) to evaluate and print the results of logical expressions.
o Create a program that demonstrates the use of bitwise operators (&, |, ^, ~, <<,
>>) with two integers. Display the binary representation and the results of the
bitwise operations.