import java.util.Scanner;
/**
*
* @author uuuuuuu
*/
public class Main {
/**
* @param args the command line arguments
Type: Posts; User: javapenguin
import java.util.Scanner;
/**
*
* @author uuuuuuu
*/
public class Main {
/**
* @param args the command line arguments
It's possible that your value for months is lost after that for loop ends. It either will print out 12 when you say
System.out.println("Number of months" + months); or it will claim it hasn't been...