Anda di halaman 1dari 1

Create a NSD for the following programs:

1. A program that will ask the user to enter a number, increase the value of the number by 5 if it is
greater than 10, and display the result. Otherwise multiply the value by5 and display the result.

2. A program that will ask the user to enter a number and find the sum of the first 30 numbers from the
input number.

3. A program that will ask the user to enter 10 numbers and find the average of the numbers.

4. A program that can calculate the net pay of an employee.

Hint: net pay = gross pay - deductions

gross pay = hours * 180

deductions = 10% of gross pay + 300

Anda mungkin juga menyukai