Computer Science, asked by nivajain4, 2 months ago

Write a program that has multiple functions:

(i) The first function stores the amount of purchase in an appropriate variable. You need to calculate discount as 25% of the amount. You are required to print the amount of purchase, the discount given and the final (net) amount to be paid after the discount.

(ii) This function must store two numbers in int variables and calculate and print their sum. It must also use if else to check whether the sum of the two numbers is an even number or odd.
For example: If the two numbers are 10 and 15, then their sum is 25 - an odd number.
For example: If the two numbers are 12 and 30, then their sum is 42 - an even number.

Answers

Answered by binodbam2003
1

Answer:

SUM function

LEARNING OBJECTIVES. Use the SUM function to calculate totals.

Similar questions