i want to count how many times the loop is run but every time i run the program it always prints the initial value of 0.
heres the original problem incase its necessary https://dmoj.ca/problem/ccc20j2
`import java.util.Scanner;
public class epidemiology
{
public static void main (String [] args)
{
Scanner scan = new Scanner (System.in);
int P=scan.nextInt();
scan.nextLine();
int N=scan.nextInt();
scan.nextLine();
int R = scan.nextInt();
scan.nextLine();
int dayz=NR;
int count=0;
for(int infections=0;infections>=P;) {
infections=dayzR;
count++;
}
System.out.println(count);
scan.close();
}
}`
DMOJ: Modern Online Judge
People who study epidemiology use models to analyze the spread of disease. In this problem, we use a simple model.