반응형
*problem*
Given two integers, and , find their sum, difference, product, and quotient.
*Input Format*
Two lines containing one integer each ( and , respectively).
*Output Format*
Four lines containing the sum (), difference (), product (), and quotient (), respectively.
(While computing the quotient, print only the integer part.)
*Answer*
더보기
read x;
read y;
echo "$((x+y))";
echo "$((x-y))";
echo "$((x*y))";
echo "$((x/y))";
728x90
반응형
'코딩테스트 > 해커랭크' 카테고리의 다른 글
[easy] Python if-Else (with Python) (0) | 2022.09.30 |
---|---|
[easy]Looping with Numbers(with shell) (0) | 2022.09.29 |
[easy]A personalized Echo (with shell) (0) | 2022.09.29 |
[easy]Looping and Skipping (with Shell) (0) | 2022.09.29 |
[easy]Say "Hello, World!" With Python (0) | 2022.09.29 |