Write a Java program for power bill generation with rate per unit is Rs.5
Answers
Answered by
2
Answer:
import java.util.*;
class Bill
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int units;
double bill;
System.out.println("enter the units consumed");
units=sc.nextInt();
bill=units*5;
System.out.println("bill amount= "+bill);
}
}
thank me if my answer is correct and mark me brainly
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
Computer Science,
2 months ago
Science,
4 months ago
Math,
4 months ago
English,
10 months ago
Economy,
10 months ago