Ответ: C++
#include <iostream>
using namespace std;
int main() {
// Variables
int age;
// Input age
cout << "How old are you?" << endl;
cin >> age;
// Output solution
cout << "In 5 years, you will be " << age + 5 << " years old" << endl;
return 0;
}
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ: C++
#include <iostream>
using namespace std;
int main() {
// Variables
int age;
// Input age
cout << "How old are you?" << endl;
cin >> age;
// Output solution
cout << "In 5 years, you will be " << age + 5 << " years old" << endl;
return 0;
}