c - scanf more then one variable -
c - scanf more then one variable -
i have line , searching how input works when code executed
scanf("%d, %f",&withdrawal ,&balance );
i utilize cygwin compile code , afterwards asked inputs. mean have write 2 numbers separated space
60 120
or there trick ? easy question, understand how works when asked more 1 input value.
scanf(), or scan formatted, expects input in format specified. scanf("%d, %f") means expect input in exact format, example: 62, 2.15 .
c user-input scanf
Comments
Post a Comment