Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
My first "real" C program needs some help.
Here is the problem i've been given:Write a program that accepts two doubles, representing the cost price (c) and percent markup (m) of an item, and calculates and displays the selling price (s).
Here is the code if written so far to complete this progect. By the way I'm using the free BloodShed compiler version 4.01.#include #include
printf("Please enter the cost of your item.
percentageIncrease = price + price/100;
printf("Please enter the percent markup of your item
finalPrice = percentageIncrease;
printf("Your final price is %.2lf
can anyone suggest what i'm doing wrong? This program compiles with no errors, but it does not produce the correct output. I think that my problem is with the "%lf". any suggestions? For additional info on this project and to see a working example please visit this link :
My project is HW01. The .exe is not a virus - i swear. This is due tonight at midnight.