Commit 99577780 authored by Vardan's avatar Vardan

deleted

parent e23bdf5b
a)
for (int x = 100; x >= 1; x--) {
std::cout << x << std::endl;
}
b)
switch (value % 2) {
case 0:
std::cout << "Even integer." << std::endl;
break;
case 1:
std::cout << "Odd integer." << std::endl;
break;
}
c)
for (int x = 19; x >= 1; x -= 2) {
std::cout << x << std::endl;
}
d)
int counter = 2;
do {
std::cout << counter << std::endl;
counter += 2;
} while (counter <= 100);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment