diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json new file mode 100644 index 0000000..866f1e1 --- /dev/null +++ b/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": null +} \ No newline at end of file diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..9568b22 --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/apptive_pr_practice/v16/.suo b/.vs/apptive_pr_practice/v16/.suo new file mode 100644 index 0000000..4ae7ba6 Binary files /dev/null and b/.vs/apptive_pr_practice/v16/.suo differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..822e4a9 Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/calculator.py b/calculator.py index 90f5426..8a17e73 100644 --- a/calculator.py +++ b/calculator.py @@ -11,21 +11,30 @@ def multiply(a, b): def divide(a, b): - pass + print( a/b) def pow(a, b): pass - def abs(a): - pass + if a > 0 : + print( a) + else : + print( -a) def mod(a, b): - pass + print( a%b) + if __name__ == "__main__": # 간단한 테스트 코드 - pass \ No newline at end of file + add(1,2) + subtract(3,2) + multiply(3,4) + divide(8,2) + pow(9,3) + abs(5) + mod(8,2) \ No newline at end of file