|
|
вернуться в форум#include <iostream> using namespace std; int main() { int n; int c = 0; cin >> n; if (n>0) { for (int i = 1; i <= n; i++) c += i; cout << c; } else if (n <= 0) { for (int i = n; i <= 1; i++) c += i; cout << c; } return 0; } Now do it in 0.001 Mmm... What?) Edited by author 20.06.2018 16:02 |
|
|