Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int birdsamount = 10;
- for (birdsamount; birdsamount > 0; birdsamount--) {
- if (birdsamount > 1) {
- cout << "There are " << birdsamount << " birds on the trees." << endl;
- cout << "One bird flies away" << endl;
- }
- else {
- cout << "There are " << birdsamount << " bird on the trees." << endl;
- cout << "One bird flies away" << endl;
- }
- }
- cout << "There is no bird on the tree" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement