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 many loops are there in c?
Difference between for loop and while loop?
Explain what are global variables and explain how do you declare them?
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?
write a program to find lcm and hcf of two numbers??
what is the difference between static variable and register variable?
What are volatile variables?
Can you define which header file to include at compile time?
Write a progarm to find the length of string using switch case?
Why do we need volatile in c?
Consider the following C program. #include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.