Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



if the total selling price of 15 items and the total profit earned on them is input through the ke..

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

if the total selling price of 15 items and the total profit earned on them is input through the ke..

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

Post New Answer

More C Interview Questions

write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer

1 Answers  


Does c have circular shift operators?

0 Answers  


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


Write a program to reverse a given number in c?

0 Answers  


What is realloc in c?

0 Answers  


What is hashing in c language?

0 Answers  


Is main a keyword in c?

0 Answers  


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


What is unsigned int in c?

0 Answers  


what is a headerfile?and what will be a program without it explain nan example?

6 Answers   Assurgent,


difference between ordinary variable and pointer in C?

2 Answers  


what is the code to display color fonts in the output?

1 Answers  


Categories