First Contact With C# Sharp - C# Programming Exercises

Explore our set of C# programming exercises! Specifically designed for beginners, these exercises will help you develop a solid understanding of the basics of C#. From variables and data types to control structures and simple functions, each exercise is crafted to challenge you incrementally as you build confidence in coding in C#. Dive into the world of C# and start your learning journey with us today!

  •  First contact with C#

    This exercise is an excellent way to get started with programming in C#. In this program, you will learn how to print a message on the screen using C#. The program wi...

  •  Sum of two numbers

    This exercise is a great way to practice basic arithmetic operations in C#. In this program, you will learn how to perform an addition operation between two numbers, 12 and ...

  •  Division of two numbers

    This exercise is a great opportunity to practice the division operation in C#. In this program, you will learn how to divide two numbers, in this case, 24 and 5, and ...

  •  Multiple operations and precedences

    This exercise is perfect for learning how to perform complex arithmetic operations in C#. In this program, you will be asked to solve several mathematical operations using d...

  •  Multiply using variables

    This exercise is perfect for learning how to perform a multiplication in C# with numbers entered by the user. In this program, the user will be asked to input two numbers, a...

  •  Use of {0} and comments

    This exercise is great for learning how to interact with the user in C# and perform basic mathematical operations. In this program, the user will be asked to input three num...

  •  Several operations

    This exercise will help you understand how to perform several basic mathematical operations in C#, such as addition, subtraction, multiplication, division, and calculating t...

  •  Multiplication table

    This exercise is perfect for learning how to generate multiplication tables dynamically in C#. In this program, the user enters a number, and the program displays the multip...

  •  Average

    This exercise is a great opportunity to learn how to calculate the average of several numbers in C#. In this program, the user must enter four numbers, and the program will ...

  •  Equivalent operations

    This C# exercise is perfect for learning how to perform mathematical operations with three numbers provided by the user. In this program, the user must enter three numbers: ...

  •  Age

    This C# exercise is perfect for learning how to interact with the user and use input data to personalize the program's output. In this case, the program will ask the user to...

  •  Formats

    This C# exercise teaches you how to handle console output using two different methods: Console.Write and formatting with {0}. In this program, the user will in...

  •  Rectangle

    This C# exercise helps you practice using loops and user input. In this program, the user will be asked to input a number (a digit), and the program will display a re...

  •  Conversion

    This C# exercise teaches you how to perform temperature unit conversions. The program prompts the user to input a temperature in Celsius degrees and then converts it ...

 More C# Programming Exercises Grouped

  •  Flow Control

    Explore our curated collection of Flow Control C# Programming Exercises! Designed to strengthen your understanding and mastery of flow control structures in C#, these exercises offer a hands-on approach to learning. From...

  •  Basic Data Types

    Explore our comprehensive collection of Basic Data Types C# Programming Exercises! Designed to provide hands-on practice with fundamental data types in C#, these exercises are perfect for beginners looking to solidify th...

  •  Arrays, Structures and Strings

    Explore our curated selection of Arrays, Structures, and Strings C# Programming Exercises! Tailored to provide practical experience with essential data structures and string manipulation in C#, these exercises offer a dy...

  •  Functions

    Embark on a journey of learning with our Functions C# Programming Exercises! Tailored for beginners, these exercises offer a hands-on approach to mastering the art of functions in C#. From understanding the basics of fun...

  •  OOP Object Oriented Programming

    Unlock the power of Object-Oriented Programming (OOP) with our C# exercises! These lessons cover classes, objects, and core principles like inheritance and polymorphism. Perfect for beginners, each exercise offers a hand...

  •  OOP More On Classes

    Dive deeper into Object-Oriented Programming with our advanced C# exercises! This section explores advanced class features, interfaces, and more. Whether you're reinforcing your OOP skills or preparing for complex projec...

  •  File Management

    Explore File Management in C# with our hands-on exercises! Learn to create, read, write, and manage files in your applications. These lessons are perfect for gaining practical experience with file handling in C#. Enhance...

  •  Object Persistence

    Master the art of Object Persistence in C#! These exercises focus on saving and retrieving objects, helping you build applications that store data effectively. Perfect for learners ready to explore advanced storage techn...

  •  Access To Relational Databases

    Delve into Access to Relational Databases in C#! These exercises provide practical experience connecting to and working with databases like SQL Server. Learn to execute queries, manage data, and integrate database functi...

  •  Dynamic Memory Management

    Learn Dynamic Memory Management in C#! These exercises guide you through concepts like pointers and memory allocation, crucial for building efficient applications. Develop a deeper understanding of how C# manages memory ...

  •  Additional Libraries

    Discover Additional Libraries in C#! These exercises introduce libraries that expand the capabilities of your C# applications. From working with collections to threading and beyond, these lessons will elevate your progra...

 Maybe you will be interested in these C# Programming Exercises

  •  Positive and negative

    In this C# exercise, you will learn how to create a program that determines whether a number entered by the user is positive or negative. The program will prom...

  •  Multiply if not zero

    In this C# exercise, you will learn how to create a program that asks the user for a number. If the entered number is not zero, the program will ask for a second number and ...

  •  Divide if not zero

    In this C# exercise, you will learn how to create a program that asks the user for two numbers. If the second number is not zero, the program will perform the division...

  •  Divide if not zero (Using else)

    In this C# exercise, you will learn how to modify the previous program using the else control structure. The program will ask the user for two numbers, and if the sec...

  •  Greatest of three numbers

    In this C# exercise, you will learn how to write a program that prompts the user to enter three numbers and displays the greatest one. The program will use conditional struc...

  •  Repeat until 0

    In this C# exercise, you will learn how to write a program that asks the user to enter a number "x" and displays the result of multiplying it by 10. The program will keep as...