#include <iostream>
using namespace std;
int main() {
int numberCats = 5;
int numberDogs = 7;
int numberAnimails = numberCats + numberDogs;
cout << "Hello" << endl;
cout << "Number of cats: " << numberCats << endl;
cout << "Number of dogs: " << numberDogs << endl;
cout << "Total number of animals: " << numberCats + numberDogs << endl;
cout << "Total number of animals_1: " << numberAnimails << endl;
cout << "New dog acquired!" << endl;
numberDogs = numberDogs + 1;
cout << "New number of dogs: " << numberDogs << endl;
return 0;
}
댓글 없음:
댓글 쓰기