#include <stdio.h>
int main(void)
{
char fever, cough;
printf("Are you running a fever? (y/n)\n");
scanf("%c",&fever);
printf("Do you have a runny nose/cough? (y/n)\n");
scanf(" %c",&cough);
printf("Please verify the folling information.\nFever: %c \nRunny nose/cough: %c \n,fever,cough");
return 0;
}
When I run this I get: 12:2 warning:format '%c' expects a matching 'int' argument [-Wformat]
What do I need to change? I know everything is systematically correct, I just need to use something else, and I can't find anything that specifically fixes my problem!
Thanks guys.