Home > Back-end >  Small white self-study c have a question want to ask
Small white self-study c have a question want to ask

Time:03-07

The answer is a book, one is with my own dev c + +, but I knock on the run has been get only 0, how be to return a responsibility excuse me [face] monkey2:018 PNG [/face] [face] monkey2:018 PNG [/face]

CodePudding user response:

input format, between a number 3 ', 'as a delimiter, and half Angle state in English, so when the input must be in the form of: 3,40,1.2
Suggest to cancel ', 'as a delimiter, into space more convenient input
 the scanf (" % d % % lf lf ", & amp; N, & amp; Capital, & amp; Rate); 
input this, simply type: 40 1.2 3

CodePudding user response:

reference 1st floor QZJHJXJ response:
input format, between a number 3 ', 'as a delimiter, and half Angle state in English, so when the input must be in the form of: 3,40,1.2
Suggest to cancel ', 'as a delimiter, into space more convenient input
 the scanf (" % d % % lf lf ", & amp; N, & amp; Capital, & amp; Rate); 
such input, simply type: 3 40 1.2
thank you!
  • Related