Hey Im new to programming and Im trying to creat a program, you should be able to see what Im trying to do with this sample code I have included. I know theres something wrong with my if statement but I cant figure it out... would appreciate the help guys thanx.
Heres my code
insert
Code:
#include <stdio.h>
int main()
{
char choice;
printf("Type your choice, either A, B or C\n");
scanf("%c", &choice);
if (choice = "%c", A)
printf("Your choice was A");
if (choice = "%c", B)
printf("Your choice was B");
if (choice = "%c", C)
printf("Your choice was C");
if (currency != A, B, C)
printf("You did not choose A, B or C");
return 0;
}
Thanx again everyone