Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple C# console-based calculator that performs basic arithmetic operations using a switch statement. The program takes two numbers and an operation symbol (+, -, *, /) from the user, processes the selected operation, and displays the result. It also includes error handling for invalid division attempts.

Notifications You must be signed in to change notification settings

EgeSoysal/CSharp_Switch-Case_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

CSharp_Switch-Case_Calculator

Simple C# Calculator (Console Application)

This project is a basic console-based calculator written in C#. The program asks the user for two numbers and an operation symbol (+, -, *, /). It then performs the selected calculation and prints the result on the screen.

โœจ Features

Takes user input for two integers

Supports four basic arithmetic operations

Includes division-by-zero check

Uses a clean and readable switch-case structure

๐Ÿ“Œ Example Usage

  1. Please enter the first number: 12
  2. Please enter the second number: 4
  3. Please enter the transaction you want to perform: / Division: 3

๐Ÿ›  Technologies

C#

Console Application (non-.NET Core)

๐Ÿš€ How to Run

Copy the .cs file into your C# console project

Build and run the program

Follow the on-screen instructions

About

A simple C# console-based calculator that performs basic arithmetic operations using a switch statement. The program takes two numbers and an operation symbol (+, -, *, /) from the user, processes the selected operation, and displays the result. It also includes error handling for invalid division attempts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages