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
What is multidimensional arrays
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What are shell structures used for?
Can variables be declared anywhere in c?
What is the use of sizeof () in c?
if p is a string contained in a string?
Can a function argument have default value?
Explain Function Pointer?
What are qualifiers in c?
What is the main difference between calloc () and malloc ()?
Write a c program to demonstrate character and string constants?
Write a program of advanced Fibonacci series.
What is the benefit of using an enum rather than a #define constant?
Is a house a mass structure?
what are enumerations in C