Learning C
anything wrong with this code
no matter what i enter, the GST is set at 10%
char Description[100];
float Price;
char Type;
float GST;
printf(“Enter Description: “);
scanf(” %s”, Description);
printf(“Enter Price: $”);
scanf(“%f”, &Price);
printf(“Enter Type: “);
scanf(” %c”, &Type);
if (Type = ‘a’ || ‘g’ || ‘o’)
{
GST = Price / 10;
}
else
{
if (Type = ‘s’)