Answer:
#include <iostream>
using namespace std;
int main() {
// Get the year from the user
cout << "Please enter a year (such as 2019): ";
int year;
cin >> year;
// Calculate the century
int century = year / 100;
// Print the year and the century
cout << year << " is in century " << century << endl;
return 0;
}
Step-by-step explanation: