-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit ea2e6e2
authored
Implement Calculator class with basic operations
Calculator class me 4 methods hain: add, subtract, multiply, aur divide.
Har method do numbers (a aur b) leta hai aur corresponding result return karta hai.
Division method me zero se divide karne par error handle kiya gaya hai.1 parent e68ac36 commit ea2e6e2
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
0 commit comments