#include <iostream>
using namespace std;
int main(){
int x=8999;
int value=x*1000/1000;
cout<<"value="<<value<<endl;
}
#include <iostream>
using namespace std;
int main(){
int x=8999;
int value=x/1000*1000;
cout<<"value="<<value<<endl;
}
#include <iostream>
using namespace std;
int main(){
int x=8999;
int value=x/1000.0*1000;
cout<<"value="<<value<<endl;
}
时间: 2024-11-07 16:33:04