Skip to content

Commit 440cbbd

Browse files
Merge pull request #156 from Practical-DevOps-GitHub/online-marathon-patch-2
Online marathon patch 2
2 parents 5eb3184 + 15583e3 commit 440cbbd

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
softservedata

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Describe your changes
2+
3+
## Issue ticket number and link
4+
5+
## Checklist before requesting a review
6+
- [ ] I have performed a self-review of my code
7+
- [ ] If it is a core feature, I have added thorough tests
8+
- [ ] Do we need to implement analytics?
9+
- [ ] Will this be part of a product update? If yes, please write one phrase about this update

myprog.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
function sumNumbers(a, b) {
2+
return a + b;
3+
}
4+
5+
console.log("Вітаю! Ця програма обчислює суму двох чисел.");
6+
7+
const number1 = parseFloat(prompt("Введіть перше число:"));
8+
const number2 = parseFloat(prompt("Введіть друге число:"));
9+
10+
11+
const result = sumNumbers(number1, number2);
12+
13+
console.log(`Сума чисел ${number1} і ${number2} дорівнює ${result}.`);
14+
alert(`Сума чисел ${number1} і ${number2} дорівнює ${result}.`);

0 commit comments

Comments
 (0)