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


Please Help Members By Posting Answers For Below Questions

How many bytes is a struct in c?

726


What is scope and lifetime of a variable in c?

579


What is the difference between exit() and _exit() function in c?

584


Where is volatile variable stored?

652


What is the use of gets and puts?

605






explain what is an endless loop?

612


Tell me when would you use a pointer to a function?

610


What does calloc stand for?

652


Why are algorithms important in c program?

623


What are comments and how do you insert it in a C program?

743


What are structure types in C?

672


a c code by using memory allocation for add ,multiply of sprase matrixes

2305


What does c mean?

589


Is the exit() function same as the return statement? Explain.

665


Which control loop is recommended if you have to execute set of statements for fixed number of times?

811