You are on page 1of 1

C# Programming Exercises - 1

1. Program to display a welcome message on the screen without declaring a variable.


2. Program to display a welcome message on the screen using String type variable declaration and
assignment.
3. Program to declare an integer variable and assign an integer value and display the same on the
computer console.
4. Program to perform addition between two numbers.
5. Program to perform subtraction between two numbers.
6. Program to perform multiplication between two numbers.
7. Program to perform division between two numbers.
8. Write a single program to perform all arithmetic operations
 Addition
 Subtraction
 Multiplication
 Division
9. Write a program to calculate sum of three numbers
10. Write a program to calculate average of three numbers
11. Calculate Rectangle Area using C#
12. Calculate Rectangle Perimeter using C#
13. Calculate Circle Area using C#
14. Calculate Circle Perimeter using C#
15. Write a program to convert celcius to fahrenheit:
16. Write a program to convert fahrenheit to celcius:
17. Write a program to calculate simple interest
18. write a program to calculate square of a number
19. write a program to calculate cube of a number
20. Program to interchange the values of two variables using third variable.
21. Program to interchange the values of two variables without using third variable.

You might also like