- codewithshiva

Latest

Search Bar

Tuesday, July 6, 2021

 Units Consumed

Description

Electricity consumption is measured via slab rates for a particular wattage capacity, which is as follows

test.png

Apart from the slab rates, a fixed charge of Rs. 80 is also added to every bill.

Given the bill, write a program to find the number of units consumed.

Input

Input Format:

First and the only line of input contains the bill amount

Constraints:

Bill amount is an integer <= 1000

Output

Output the number of units consumed

Sample Input 1 

930

Sample Output 1

170
Language: 
Java
 
 
Theme: 
Dark

No comments:

Post a Comment