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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -