Last updated 2 months ago
This is another "give-away" question, and is suitable for beginners. It tests the basic use of if-else structure.
if-else
#include <stdio.h> int main() { long a, b ,c; scanf("%ld %ld %ld", &a, &b, &c); if (c == a + b) { printf("correct!\n"); } else { printf("wrong!\n"); } }