Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
#include<stdio.h> int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'a') printf("Shipping Cha...Asked by Borhan
#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
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
Answers
Answered by
Umair
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.
For any query you can contact me. I can provide you free online tutoring.
Answered by
Umair
You can whatsapp me 00923215081005
Answered by
AJ
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.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.