G - Следующее четное
unknown
c_cpp
2 years ago
132 B
7
Indexable
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << n + 2 - n % 2; return 0; }
Editor is loading...
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << n + 2 - n % 2; return 0; }