Wrong arguments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Wrong arguments

I have an input but the program says I have wrong arguments. What arguments do I need? https://code.sololearn.com/cfiyd8nXFX4p/?ref=app

20th Dec 2020, 5:53 PM
Benson
2 Answers
+ 12
The syntax for scanf is incorrect. Go through the lesson again and write the correct syntax to remove the error. https://www.sololearn.com/learn/C/2914/?ref=app
20th Dec 2020, 5:56 PM
Nova
Nova - avatar
+ 2
The syntax for taking input is incorrect in your code The correct syntax as per your code would be this.. float price ; scanf("%f",&price);
20th Dec 2020, 6:01 PM
Vinayak
Vinayak - avatar