There is one online food ordering & delivering application. On that application customers can buy food and they will get their food delivered at their doorstep. There is 0 rupees delivery charge if the distance between the restaurant & delivery location is less than or equals to 10 kilometers otherwise additional 150 rupees delivery charge will be applicable. If the order price is more than 499 rupees then on that order customer will get flat 50 rupees off as a discount. You have to take order price from user input first, then the distance between restaurant and delivery location from user input. And you have to print out the amount to pay. sample input: 550 15 sample output: 650 sample input: 150 7 sample output: 150 sample input: 700 3 sample output: 650
Example heading with h2 size
Example heading with h3 size
Following is sample java code.
int i = 10;
if(i>0){
System.out.println('positive');
}