i'm trying to get 2 words to be compared whether they're the same or not, but scanf() on line 14 isn't working and the code goes straight to printing "False"
#include <string.h>
#include <stdio.h>
int main()
{
int w1, w2; //word 1, word 2
{
printf("What is the first word?");
scanf("%%", &w1);
printf("What is the second word?");
scanf("%%", &w2); <--------line 14
{
if
(w1 == w2) {
printf("True");
}
else {
printf("False");
}
}
}
}