#!/bin/bash 
gcc program11.c -o program11
./program11 $1
if [ $? -eq 0 ] 
then 
  echo "Successfully executed file" 
else 
  echo "Could not execute program file" >&2 
fi

# Run below command to make the script executable
# chmod +x run_program