Quote |
/* total cost calculator - calculates the price of items */ #include <stdio.h> main() { float base, vat = 1.175, post, final; printf("\nItem Calc - with beeps!"); printf("\a\nPlease input the the base price of the item: "); scanf(" %f", &base); printf("\a\nPlease input the postage+packing charge: "); scanf(" %f", &post); final = (base * vat) + post; printf("\a\nThe total is: %.2f", final); return 0; } /* don't forget the apersands! */ |
Quote |
I'm not sure what is ment by "specify the return type i.e. int main" |