import java.util.Scanner;
class bananas
{
public static void main(String[] args)
{
Scanner egg = new Scanner(System.in);
System.out.println("Enter an integer between 1 and 100: ");
int z = 1, y, x = egg.nextInt();
if ( x>=1 && x<=100 )
{
for(y = 1; y<=100;y++)
{
z = x * y;
System.out.println(z);
}
}
else
{
System.out.println("It is not an integer between 1 and 100.");
}
}
}
Quick Links to Application questions (with solutions)!
Wednesday, February 17, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment