Questions


August 2021 2 8 Report
Checking budget of mobile
Write a java program to find the mobile chosen is within the budget or not. To find the budget mobiles is based on the below-mentioned criteria,

a)If the cost of the mobile chosen is less than or equal to 13000 then display it as "Mobile chosen is within the budget"

b)If the cost of the mobile chosen is greater than 13000 then display it as "Mobile chosen is beyond the budget"



Sample Input 1:

Enter the cost of the mobile

12000

Sample Output 1:

Mobile chosen is within the budget



Sample Input 2:

Enter the cost of the mobile

22000

Sample Output 2:

Mobile chosen is beyond the budget

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.