MCPcopy Create free account
hub / github.com/Manvityagi/PW-Skills-Java-Course-Codes / Main

Class Main

Lecture 07_Loops/src/Main.java:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import java.util.Scanner;
2
3public class Main {
4 public static void main(String[] args) {
5 int num = 1;
6 while(true){
7 if(num % 5 == 0 && num % 7 == 0){
8 System.out.println(num);
9 break;
10 }
11 num++;
12 }
13 }
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected