Commit 0767f7c2 authored by mary.zaqaryan's avatar mary.zaqaryan

Mary Zaqaryan Exercise_05_04 Version1

parent b21ea84b
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