The program ran incorrectly, but felt that the editor was right.

  c++, question
#include <stdio.h>
 int main () {
 int a, b, c, med;
 printf("Please enter three integer: ");
 scanf("%d%d%d", a, b, c);
 if (b < a && a < c || c < a && a < b) {
 med = a;
 }
 if (a < b && b < c || c < b && b < a) {
 med = b;
 }
 if (a < c && c < b || b < c && c < a) {
 med = c;
 }
 printf("The median is %d \n", med);
 return 0;
 }
scanf("%d%d",&a,&b);