From 1dace4d1279e431f5ce90cb378fcadd6afef3a4f Mon Sep 17 00:00:00 2001 From: Nisarg Bhatt Date: Tue, 6 Oct 2020 21:12:02 +0530 Subject: [PATCH] Electricity Bill counter in java --- OOPs/input.java | 20 ++++++++++++++++++++ OOPs/units.java | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 OOPs/input.java create mode 100644 OOPs/units.java diff --git a/OOPs/input.java b/OOPs/input.java new file mode 100644 index 00000000..d7a587cb --- /dev/null +++ b/OOPs/input.java @@ -0,0 +1,20 @@ +package elebill; + +import java.util.Scanner; + +public class input { + public static void main(String args[]) + { + Scanner sc=new Scanner(System.in); + System.out.println("Enter No of users: "); + int n=sc.nextInt(); + for(int i=0;i