Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Task2
//Name : Rahul Patil //Batch : Comp D2 //GR No : 21910345 //Roll no. = 224039 import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); float sum =0; System.out.println("Enter 10 Numbers as input"); for(int i=0;i<10;i++) { sum+=sc.nextInt(); } System.out.println("Sum of numbers is : "+sum+"\nAverage is : "+sum/10); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
4.C
java
total a pagar
Armstrong no
motifCatur
Finding Biggest Square
Sort an array of 0's 1's 2's
상속2
Firstproject
Consecutive Elements String
Please log in to post a comment.