Problem list
Log in
#r02977 · Online Judge > GoldOJ

Arithmetic Operators

Bronze IV 1.0 s 256 MB

Given two positive integers $a$ and $b$, print, one per line: $a+b$, $a-b$, $a \times b$, $a/b$ (2 decimals), $a // b$ (floor), $a \bmod b$, and $a^b$.

Input

Two integers $a$ ($1 \le a \le 50$) and $b$ ($1 \le b \le 6$).

Output

Print the seven results in order, one per line.

Example 1

Input
10 3
Output
13
7
30
3.33
3
1
1000
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code