#!/bin/bash  
# compile and run c file from edu.ex, for Linux

gcc -Wall $1 -o a.out

# exit on gcc error
if [ $? -ne 0 ]; then
#  	read -p " Enter to continue..."
	exit
fi

./a.out

