Computer Science, asked by saanvib13, 4 months ago

Write a Java program for power bill generation with rate per unit is Rs.5 ​

Answers

Answered by mohammadadnan7
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