Looking for Olympiad- Eng- Comp-Sciences-2 test answers and solutions? Browse our comprehensive collection of verified answers for Olympiad- Eng- Comp-Sciences-2 at do.ipo.kpi.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
#include <iostream>
using namespace std;
int main() {
int i = 1, iterations = 0;
while (i <= 10) {
iterations++;
i *= 2; }
cout << iterations;
return 0; }
#include <iostream>
using namespace std;
int main() {
int a = 5;
cout << a++ * ++a;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x = 3, y = 5, z = 7;
cout << x++ * ++y + --z * x-- / ++y;
return 0;
}
#include <iostream>
using namespace std;
int func(int n) {
if (n == 0)
return 1;
return n * func(n - 1);
}
int main() {
cout << func(4);
return 0;
}