Commit 95a12046 by ajil.k

updated

parent a30c96bd
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="bb693d69-f5a6-4645-8829-eaa5a6f92c0e" name="Changes" comment="files added"> <list default="true" id="bb693d69-f5a6-4645-8829-eaa5a6f92c0e" name="Changes" comment="updated">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -26,7 +25,7 @@ ...@@ -26,7 +25,7 @@
"keyToString": { "keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true", "RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true",
"settings.editor.selected.configurable": "vcs.Git" "settings.editor.selected.configurable": "preferences.pluginManager"
} }
}]]></component> }]]></component>
<component name="RunManager"> <component name="RunManager">
...@@ -76,7 +75,28 @@ ...@@ -76,7 +75,28 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1673873342757</updated> <updated>1673873342757</updated>
</task> </task>
<option name="localTasksCounter" value="3" /> <task id="LOCAL-00003" summary="test">
<created>1673875624731</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1673875624731</updated>
</task>
<task id="LOCAL-00004" summary="test">
<created>1673877122076</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1673877122076</updated>
</task>
<task id="LOCAL-00005" summary="updated">
<created>1673877322372</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1673877322372</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
...@@ -92,6 +112,8 @@ ...@@ -92,6 +112,8 @@
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="files added" /> <MESSAGE value="files added" />
<option name="LAST_COMMIT_MESSAGE" value="files added" /> <MESSAGE value="test" />
<MESSAGE value="updated" />
<option name="LAST_COMMIT_MESSAGE" value="updated" />
</component> </component>
</project> </project>
\ No newline at end of file
def add(n1,n2): def add(n1, n2):
sum=n1+n2 sum = n1 + n2
print("Sum: ",sum) print("Sum: ", sum)
def subtract(n1,n2):
difference=n1-n2
print("Difference: ",difference) def subtract(n1, n2):
def multiply(n1,n2): difference = n1 - n2
product=n1*n2 print("Difference: ", difference)
print("Product: ",product)
def divide(n1,n2):
quotient=n1/n2 def multiply(n1, n2):
print("Quotient: ",quotient) product = n1 * n2
def moduloDivision(n1,n2): print("Product: ", product)
remainder=n1%n2
print("Remainder: ",remainder)
def divide(n1, n2):
quotient = n1 / n2
print("Quotient: ", quotient)
def moduloDivision(n1, n2):
remainder = n1 % n2
print("Remainder: ", remainder)
num1 = float(input("Enter the first number: ")) num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: ")) num2 = float(input("Enter the second number: "))
i=1 i = 1
while(i==1): while i == 1:
ch=int(input("------Enter Your Choice------\n1.Add\n2.Subtract\n3.Multiply\n4.Divide\n5.Modulus\n6.Enter 0 to exit\n----------------------")) ch = int(input("------Enter Your Choice------\n1.Add\n2.Subtract\n3.Multiply\n4.Divide\n5.Modulus\n6.Enter 0 to exit\n----------------------"))
if ch==0: if ch == 0:
i=0 i = 0
elif ch==1: elif ch == 1:
add(num1,num2) add(num1, num2)
elif ch==2: elif ch == 2:
subtract(num1,num2) subtract(num1, num2)
elif ch==3: elif ch == 3:
multiply(num1,num2) multiply(num1, num2)
elif ch==4: elif ch == 4:
divide(num1,num2) divide(num1, num2)
elif ch==5: elif ch == 5:
moduloDivision(num1,num2) moduloDivision(num1, num2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment