Java – Conditional Statements

Java – If Block

If Block: It is used to execute a block of instructions if the condition is valid. Program to give 15% discount on bill if the bill amount is greater than 5000 Program to give 20% bonus on salary if the employee has more than 5 years of experience:

Scroll to Top