Write code to declare an integer numPeppers, read it from scanner scnr, and print '...
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
int numPeppers;
numPeppers = scnr.nextInt();
System.out.println("peppers- " + numPeppers);
numPeppers.scnr object to read an integer input from the user.numPeppers using numPeppers = scnr.nextInt();.System.out.println("peppers- " + numPeppers);.