When I replace in the Workshop1 Script the variable "c" with a "g", I get a "Wrong type..." error. Is this by design?

function main()
{
var a = 1;
var b = 2;
var g;
g = a + b;
printf("Result = %.f",g);
}