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 a scope resolution operator in c?
Is anything faster than c?
What are loops c?
Write a program to print "hello world" without using a semicolon?
What is static identifier?
What are the main characteristics of c language describe the structure of ac program?
What is string function c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is the advantage of c?
What do you mean by scope of a variable in c?
How to delete a node from linked list w/o using collectons?
What is a header file?
What do mean by network ?
What is the general form of a C program?
What is c programming structure?