Advertisement
wowonline

Untitled

Dec 12th, 2021
698
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int
  4. main(int argc, char *argv[])
  5. {
  6.     int x;
  7.     char *summon = "summon";
  8.     char *reject = "reject";
  9.     char *disqualify = "disqualify";
  10.     while (scanf("%d", &x) == 1) {
  11.         printf("%s\n", x > 5?summon:disqualify);
  12.     }
  13.     return 0;
  14. }
Advertisement
RAW Paste Data Copied
Advertisement