forked from cs-dept-ibbul/java2019
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab5psuleudocode1.java
More file actions
41 lines (27 loc) · 862 Bytes
/
Copy pathlab5psuleudocode1.java
File metadata and controls
41 lines (27 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package assignment;
import java.util.Scanner;
/**
*
* @authoR
*/
public class Pseudocode1 {
public static void main(String [] args){
int counter,total,num,average;
Scanner input = new Scanner(System.in);;
counter=1;
total=0;
while(counter<=10){
System.out.println("Enter Number");
num = input.nextInt();
total=total+num;
counter=counter+1;
}
average=total/10;
System.out.println("total :"+average);
}
}