gongyh @ 2021-12-08 21:43:26
第十一行那里求错了?
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int x,y,z,s;
x=a*10/1000;
y=a*10/100%10;
z=a*10/10%100%10;
s=a*100%100/10;
cout<<s<<endl<<z<<endl<<y<<"."<<x;
return 0;
}
by 上帝之鹰 @ 2021-12-08 21:45:42
把cout里的endl都去掉
by wangsiqin @ 2022-01-16 21:29:33
@gongyh 不用加endl换行