1 #include<iostream> 2 using namespace std; 3 int main(){ 4 float x; 5 int i; 6 x=3.6; 7 i=(int)x; 8 cout<<"x="<<x<<",i="<<i<<endl; 9 return 0; 10 }