1) Write a C program using a function name totalamount () that accepts 4 integer arguments name limasen, sepuluhsen, duapuluhsen and limapuluhsen, which represent the number of 5 cents (RM0.05), 10 cents (RM0.10), 20 cents(RM0.20) and 50 cents (RM0.50) in a bank. The function should determine and return the total amount in Malaysian Ringgit value in two decimal places.
a-write coding that function with return value - display in main(),
b- write coding that function without return value - display output in function definition )
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here