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
In C language what is a 'dangling pointer'?
Explain the meaning of keyword 'extern' in a function declaration.
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the purpose of scanf() and printf() functions?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What library is sizeof in c?
Which is best book for data structures in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
Write a program that accept anumber in words
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
How do you write a program which produces its own source code as output?
What is calloc malloc realloc in c?
Tell us something about keyword 'auto'.
Explain Function Pointer?