If cost price and selling price of an item are input through the keyboard, write a C program to determine…