Update calculator.c

Updated to use new snprintf() in PebbleSDK 1.12