#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

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.
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.
Similar Questions
  1. #include<stdio.h>int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'malacca') printf("Shipping
    1. answers icon 2 answers
  2. #include<stdio.h>int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'a') printf("Shipping
    1. answers icon 1 answer
  3. #include<stdio.h>int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'a') printf("Shipping
    1. answers icon 0 answers
  4. #include <stdio.h>#include <stdlib.h> int main() { int num[100]={0}; int i,n=0; for(i=0; num[i] != EOF ; i++,n++) {
    1. answers icon 2 answers
more similar questions