Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsnsoft/why-do-you-need-parentheses-in-programs
Зачем нужны скобки в программах!
https://github.com/tsnsoft/why-do-you-need-parentheses-in-programs
mathematics parentheses programming
Last synced: about 11 hours ago
JSON representation
Зачем нужны скобки в программах!
- Host: GitHub
- URL: https://github.com/tsnsoft/why-do-you-need-parentheses-in-programs
- Owner: tsnsoft
- License: mit
- Created: 2022-09-25T11:40:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-25T13:16:31.000Z (about 2 years ago)
- Last Synced: 2024-05-01T11:26:05.969Z (7 months ago)
- Topics: mathematics, parentheses, programming
- Homepage:
- Size: 2.84 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Why-do-you-need-parentheses-in-programs
__Зачем нужны скобки в программах!__*(2+3)/(4+6) = 0.5*
![srcreenshot](screenshot1.jpg)
*2+3/(4+6) = 2.3*
![srcreenshot](screenshot2.jpg)
*(2+3)/4+6 = 7.25*
![srcreenshot](screenshot3.jpg)
*2+3/4+6 = 8.75*
![srcreenshot](screenshot4.jpg)
*(2\*3)/(4\*6) = 0.25*
![srcreenshot](screenshot5.jpg)
*(2\*3)/4\*6 = 9*
![srcreenshot](screenshot6.jpg)
***Программа на Python для сомнивающихся: ))***
```
a = 2
b = 3
c = 4
d = 6
x1 = (a + b) / (c + d)
x2 = a + b / (c + d)
x3 = (a + b) / c + d
x4 = a + b / c + d
x5 = (a * b) / (c * d)
x6 = (a * b) / c * d
print(x1)
print(x2)
print(x3)
print(x4)
print(x5)
print(x6)
```