if the total selling price of 15 items and the total profit
earned on them is input through the keyboard, write a program
to find the cost price of one of the item
Answer Posted / jiaul haque sabuj
main()
{
float X,Y,Z,A;
printf("Please Enter the Total Price Of 15 Items : ");
scanf("%f",&X);
printf("Please Enter the total profit Earned on them : ");
scanf("%f",&Y);
Z=(X-Y)/15;
printf("The Cost Price of One Item is : %.2f",Z);
}
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How many bytes is a struct in c?
What is scope and lifetime of a variable in c?
What is the difference between exit() and _exit() function in c?
Where is volatile variable stored?
What is the use of gets and puts?
explain what is an endless loop?
Tell me when would you use a pointer to a function?
What does calloc stand for?
Why are algorithms important in c program?
What are comments and how do you insert it in a C program?
What are structure types in C?
a c code by using memory allocation for add ,multiply of sprase matrixes
What does c mean?
Is the exit() function same as the return statement? Explain.
Which control loop is recommended if you have to execute set of statements for fixed number of times?