0

How do I format the input with scanf?

Whats rhe meaning of “%10f”

18th Dec 2019, 2:12 AM
Hu Shuikang
2 RĂ©ponses
0
10 is the width specification: the max number of chars to consider. https://code.sololearn.com/cmasjZhAbrd7/?ref=app In your case if you digit 0000000009 (nine zeroes) the value of a will be 9.0 but if you input 00000000009 (ten zeroes) the value of a will be 0.0
18th Dec 2019, 7:06 AM
Bilbo Baggins
Bilbo Baggins - avatar