]> iEval git - gruntmaster-daemon.git/blame - t/problems/aminusb/ver.c
Test pipes when running interactive programs before executing them
[gruntmaster-daemon.git] / t / problems / aminusb / ver.c
CommitLineData
889e6e28 1#include <stdio.h>
5c5cd38a
MG
2
3int main(void){
4 FILE *output = fdopen(3, "r");
5 int a, b, ret;
6 scanf("%d%d", &a, &b);
7 fscanf(output, "%d", &ret);
8 if(a-b == ret){
9 printf("20");
10 return 0;
ac964998
MG
11 } else {
12 printf("Nu-i bine");
5c5cd38a 13 return 1;
ac964998 14 }
5c5cd38a 15}
This page took 0.039138 seconds and 4 git commands to generate.