Решила, что тесты теперь будут не только по Java, но и по С++.
#include <iostream>
using namespace std;
int main() {
int a = 5;
int b = a++ + ++a;
cout << b << endl;
return 0;
}
🔥6❤2👍2
Сегодня простой тест по С++:
#include <iostream>
using namespace std;
int main() {
int x = -3;
if (x > 0)
if (x % 2 == 0)
cout << "Even";
else
cout << "Negative";
return 0;
}
👍4