#include <stdio.h>
#include <stdlib.h>
int main(){
double purchase_price;
char product;
char product_type;
printf("Enter purchase price ");
scanf("%lf", &purchase_price);
printf("Enter product ");
scanf("%s", product);
printf("Enter product type ");
scanf("%s", product_type);
if ("%s", product_type)=='p'
markup=0.05
}
#include <stdlib.h>
int main(){
double purchase_price;
char product;
char product_type;
printf("Enter purchase price ");
scanf("%lf", &purchase_price);
printf("Enter product ");
scanf("%s", product);
printf("Enter product type ");
scanf("%s", product_type);
if ("%s", product_type)=='p'
markup=0.05
}