#include <iostream>
using namespace std;
int main() {
int unit, m;
cin>>unit>>m;
if (unit == 2) {
m*=1000000;
}
else if (unit == 3) {
m*=1000;
else if ( unit == 4 ) {
m/=1000;
else if ( unit == 5 ) {
m/=100;
cout<<m;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
int unit, m;
cin>>unit>>m;
if (unit == 2) {
m*=1000000;
}
else if (unit == 3) {
m*=1000;
}
else if ( unit == 4 ) {
m/=1000;
}
else if ( unit == 5 ) {
m/=100;
}
cout<<m;
}