plz help to solve the simple c program,
Code:#include <stdlib.h> int main() { float cp,sp,p,l; printf("Enter cost Price and selling Price:"); scanf("%f%f",&cp,&sp"); p=sp-cp; l=cp-sp; if (p>0) printf("The seller has made a profit of Rs.%f",p); if (l>0) printf("The seller has made a loss of Rs.%f",l); if (p==0) printf("There is no loss no profit"); return 0; }