|
|||
Arithmetic Operations #3Write a program that reads integers and operators of the C programming language from the standard input line by line, performs the operation indicated by the operator on the scanned/read values and writes the result to the standard output. Input Specification
A bemenet sorainak mindegyike egy-egy tesztesetet ír le.
Minden teszteset egy „x op y” formátumú sor, ahol
x és y egész számok, míg op a C programozási nyelv egész típusú
operandusokra alkalmazható alábbi aritmetikai operátorainak egyike: Output SpecificationFor each test case, the program must write a single line containing the result of the operation x op y specified in the test case. Sample Input
Output for Sample Input
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |