Use calculation in if statement
#include <stdio.h> int main(void) { int answer; printf("What is 110 + 14? "); scanf("%d", &answer); if(answer == 110+14) printf("Right!"); else { printf("Wrong. "); printf("The answer is 124."); } return 0; }