Use result as the if condition
#include <stdio.h> int main(void) { int answer; printf("What is 110 + 14? "); scanf("%d", &answer); if(answer == 110+14) printf("Right!"); return 0; }