Home / Expert Answers / Computer Science / convert-totalyears-to-centuries-deca-ex-if-the-input-is-311-the-output-is-centuries-3-decades-pa649

(Solved): Convert totalYears to centuries, deca Ex If the input is 311, the output is. Centuries: 3 Decades: ...




Convert totalYears to centuries, deca Ex If the input is 311, the output is.
Centuries: 3
Decades: 1
Yeans: 1
Note: A century
Convert totalYears to centuries, deca Ex If the input is 311, the output is. Centuries: 3 Decades: 1 Yeans: 1 Note: A century has 100 years. A decade has 10 years.


We have an Answer from Expert

View Expert Answer

Expert Answer


#include using namespace std; int main() { int totalYears; int numCenturies; int numDecades; int numYears; cin >> totalYears; // The total number o
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe