![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/340879537746161.jpg "#left"
float类型的输入要用%f
这不是出来了吗,接下来输入a,b的值就行了,中间用逗号隔开