Информатика, 06.09.2019 15:50, dima3693

For a positive integer n, we define a function f: f (n) = - 1 + 2 - 3 + .. + (- 1) nn your task is to calculate f (n) for a given integer n. input data the only line contains a positive integer n (1 ≤ n ≤ 1015). output output f (n) in a single line. with c++

Всего ответов: 3

Другие вопросы по Информатике

Знаешь правильный ответ?
For a positive integer n, we define a function f: f (n) = - 1 + 2 - 3 + .. + (- 1) nn your task is...

Вопросы по предметам