Your Program is fine. I have compiled it. It is working. Whats your problem.
For any query you can contact me. I can provide you free online tutoring.
#include<stdio.h>
int main()
{
char ch;
printf("Enter Your State Name : ");
scanf("%c",&ch);
if(ch == 'a')
printf("Shipping Charge : $25");
else if(ch == 'b')
printf("Shipping Charge : $50");
else if(ch == 'c')
printf("Shipping Charge : $65");
else
printf("The state not in purchase");
return 0;
}
Tell me what wrong
3 answers
You can whatsapp me 00923215081005
Nothings really wrong, only states go off of 2 characters.
texas: TX
Thats really the only thing i can think of. No one knows what state "a" is but everyone knows that "AR" is Arkansas.
texas: TX
Thats really the only thing i can think of. No one knows what state "a" is but everyone knows that "AR" is Arkansas.