Phép tính

View as PDF



Problem type
Allowed languages
Assembly, Awk, Brain****, C, C++, Java, Pascal, Perl, Python, SCRATCH, Sed, Text
Points: 3 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Cho hai số nguyên dương \(a\)\(b\). Hãy in ra tổng, hiệu, tích, thương của hai số.

Input

Gồm hai dòng, mỗi dòng chứa một số nguyên dương \(a\)\(b\).\((1 \leq a \leq b \leq 10^9)\)

Output

  • Dòng thứ nhất in ra tổng.
  • Dòng thứ hai in ra hiệu
  • Dòng thứ ba in ra tích
  • Dòng thứ tư in ra thương
Sample
Input
10 
5
Output
15
5
50
2

Comments

Most recent
Loading comments...

There are no comments at the moment.