forked from ossamamehmood/Hacktoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Calculator (contribution for hacktoberfest 2022) #1
Open
Tushark02
wants to merge
10,000
commits into
Tushark02:main
Choose a base branch
from
ossamamehmood:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create bank.py
Create colorcode.py
Create binaryconvertion.py
Create statistics.py
Create chatbot.py
Create calendar.py
Create tables.py
Create Stack.c
Create SinglyLinkedListOperations.c
Create BucketSort.cpp
Added Bellman Ford algorithm in C++
Create subset_sum.c
Added myself
Create snakegame.java
Add MounatinArray.java
First commit
Add myself
Created Maximum & minimum element.cpp
added a simple BMI calculator
cardName updated
add SoumyaPandey.png
Create SoumyaPandey.md
Create flappy_brid.cpp
…nt_application Adding/python contact management application
Created implementingQueueWithStack.tsx
Create queue.c
Add files via upload
Simple Login Registration System Made using C++
Create Codedamn day 4
Create codedamn day 3
Update Dijkstra'sAlgorithm.py
A program for sorting an array using counting sort algorithm. Time complexity = O(N+M), where N and M are the size of arrays used for sorting.
For understanding pull requests
For understanding pull requests, feel free to not accept this one
Update README.md
initial commit
Create mdsahilnoob.md, added my profile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Program make a simple calculator
This function adds two numbers
def add(x, y):
return x + y
This function subtracts two numbers
def subtract(x, y):
return x - y
This function multiplies two numbers
def multiply(x, y):
return x * y
This function divides two numbers
def divide(x, y):
return x / y
print("Select operation.")
print("1.Add")
print("2.Subtract")
print("3.Multiply")
print("4.Divide")
while True:
# take input from the user
choice = input("Enter choice(1/2/3/4): ")