#include <iostream>
using namespace std;
int main() {
int lenght;
cout << "Lenght(mm): ";
cin >> lenght;
int cm, m, mm;
m = lenght / 1000;
cm = lenght / 10 - m * 100;
mm = lenght - lenght / 10 * 10;
cout << m << " meters " << cm << " centimeters " << mm << " millimeters";
return 0;
}
#include <iostream>
using namespace std;
int main() {
int lenght;
cout << "Lenght(mm): ";
cin >> lenght;
int cm, m, mm;
m = lenght / 1000;
cm = lenght / 10 - m * 100;
mm = lenght - lenght / 10 * 10;
cout << m << " meters " << cm << " centimeters " << mm << " millimeters";
return 0;
}