Hello everyone, this is my first post on the forum and I'm starting to write basic C programs. I want to hear feedback on a source code I written and compiled. I want to read if there are any improvements I can make with it.
Here is my source code:
Guys, what do you think?Code:/************************************************************** * Converts yearly fixed income to current income to-year * **************************************************************/ #include <stdio.h> int main(void) { float annual, by_week, to_date; printf("How much do you earn annually? "); scanf("%f", &annual); printf("How many weeks have you worked this so far in this year? [Tip: 12 months = 52 years] "); scanf("%f", &by_week); to_date = by_week * (annual / 52); printf("Your current income-to-year is $%.2f.\n", to_date); return 0; }