Hi there,
This is my first post.
I am new to prgramming and the C language, and was following instructions from a book to produce a simple execution. Unfortunately, it does not give me clean results when I try and compile it (with Xcode), so I was wondering if anybody here could help me solve it?
It is basic, so please do not get too in depth about it, as I only briefly understand C. Thanks.
This is the end of my code.Code:/* Code to calculate earnings using to variables*/ #include <stdio.h> int main(void) { int age; /* User's age in years*/ float hourly_wage; /* User's hourly wage in pounds. */ /* Set the values*/ age=40; hourly_wage= 6.50; /* Print the variable values*/ Printf ("You are %d years old.\n", age); Printf ("Your hourly wage is £%0.2f. This translates into £%0.2f per year.\n", hourly_wage, hourly_wage*12*5*52); return 0; }
Thanks,
Shiv
P.S: This is the error I was getting:
"_Printf", referenced from:



LinkBack URL
About LinkBacks



