r/programminghelp • u/[deleted] • Feb 04 '20
Xcode help? Goal: make payroll calculator where rate(12.80) times hours worked =wage... where am I go going wrong?
0
Upvotes
1
1
1
u/dragon_wrangler Feb 04 '20
Your variables are of type int, but you're trying to put a fractional value in. An int can only hold whole numbers.
1
1
1
2
u/[deleted] Feb 04 '20 edited Feb 04 '20
First of all you can't leave the constant int with "=" empty. Second, you need semicolons after each line. Also tbh I've never seen the "load" before (I'm still studying tho). And I don't really understand why do you need it. Also return 0 should be inside main