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 |
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Reverse a string word by word??
Write a program to generate the first n terms in the series --- 9,11,20,31,...,82
Why c language?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
what is difference between #include<stdio.h> and #include"stdio.h"
How can you tell whether a program was compiled using c versus c++?
What's a "sequence point"?
What is call by reference in functions?
What does %d do?
What is getche() function?
How many ways are there to swap two numbers without using temporary variable? Give the each logic.