We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87b4dee + 4aa5945 commit 5bf3948Copy full SHA for 5bf3948
1 file changed
average.class
@@ -0,0 +1,20 @@
1
+#https://in.pinterest.com/pin/747808713120875493/
2
+#Subscribed by codehouseindia
3
+import java.util.Scanner;
4
+public class addition {
5
+ public static void main(String[] args) {
6
+ int a,b,c,ans,avg;
7
+ System.out.println("Author name=Viresh Solanki");
8
+ Scanner s=new Scanner(System.in);
9
+ System.out.println("enter a=");
10
+ a=s.nextInt();
11
+ System.out.println("enter b=");
12
+ b=s.nextInt();
13
+ System.out.println("enter c=");
14
+ c=s.nextInt();
15
+ ans=a+b+c;
16
+ System.out.println("answer="+ans);
17
+ avg=(ans/3)*100;
18
+ System.out.println("average="+avg);
19
+ }
20
+}
0 commit comments