Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/School-Work / School Work/4.15 LAB- Output values below an amount.java |
| Date | Not specified in source |
| Repository | Janady13/School-Work |
| Revision | 4a666c890caf7c43c47d0572dbcc287373c7a78e |
| Branch | main |
| Path or archive member | School Work/4.15 LAB- Output values below an amount.java |
| Original SHA-256 | b23ef9a6b3771a2a15d9c8c404e8b2d73f7da09160e7393865320cad01bd7002 |
| Git blob SHA | b861d5992a6c6fef197331f578afe22c06d1fea1 |
| Reading-copy SHA-256 | b23ef9a6b3771a2a15d9c8c404e8b2d73f7da09160e7393865320cad01bd7002 |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/School-Work / School Work/4.15 LAB- Output values below an amount.java | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
| Janady13/School-Work / School Work/School-Work/School Work/4.15 LAB- Output values below an amount.java | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
Recovered source transcript
Download complete source text ↓26 lines · 0.6 KB
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int[] userValues = new int[20]; // List of integers from input
/* Type your code here. */
int n, i, threshold;
n=scnr.nextInt();
for(i=0; i<n; i++){
userValues[i] = scnr.nextInt();
}
threshold = scnr.nextInt();
for(int j=0; j<i; j++){
if(userValues[j]<=threshold)
System.out.print(userValues[j]+",");
}
System.out.println();
}
}