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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / gagan kumar
void main()
{
int sell_pr, profit, cost_pr, cost_pr_one_item ;
clrscr();
printf(“Please enter the selling price of 15 items:”);
scanf(“%d”, &sell_pr);
printf(“Please enter the profit earned on 15 items:”);
scanf(“%d”, &profit);
cost_pr = sell_pr – profit;
cost_pr_one_item = cost_pr/15;
printf(“Cost price of one item is %d”, cost_pr_one_item);
getch();
}
| Is This Answer Correct ? | 6 Yes | 5 No |
what is meant by the "equivalence of pointers and arrays" in C?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?
Is c high or low level?
Explain Basic concepts of C language?
i want to job in your company, so how it will be possible.
develop algorithms to add polynomials (i) in one variable
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the collection of communication lines and routers called?
How does C++ help with the tradeoff of safety vs. usability?
Explain the difference between the local variable and global variable in c?
What are register variables? What are the advantage of using register variables?
What is dynamic memory allocation?