这个有什么问题吗1为什么过不了

P5705 【深基2.例7】数字反转

blick_winkel486 @ 2024-11-09 20:47:33

#include <iostream>
int main(){
float num;
int a,b,c,d;
std::cin>>num;
int num1;
num1=num*10;
a=num1/1000;
b=num1/100%10;
c=num1/10%10;
d=num1%10;

float t=d*100+c*10+b+a*0.1;
std::cout<<t;

return 0;}

|