c++作业1 9.22
#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;
}