Code:
#include <stdio.h>

int main(){
unsigned char x, y=10;

scanf ("%c", &x);

x = (x)*(y);

printf("%i", x);

if (x==100){
    printf ("correct");
}

return 0;

}
If I take out scanf and assign x a value then it works, but if I enter, for example, 10 into scanf it comes up as 234 rather than 100.