Skip to content

Instantly share code, notes, and snippets.

@Gzoref
Created November 29, 2018 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gzoref/b066f8b18849a5991d0c88af778f0c8c to your computer and use it in GitHub Desktop.
Save Gzoref/b066f8b18849a5991d0c88af778f0c8c to your computer and use it in GitHub Desktop.
package com.object.params;
import java.util.Scanner;
/*
* Name: Geoffrey Zoref
* Date: 9/8/2018
* Project: Classes and Objects - Ch. 6
*/
public class Scan {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int N = input.nextInt();
int iLoop;
//input.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
for(iLoop=1;iLoop<11;iLoop++)
{ int ans= N*iLoop;
System.out.println(N+" x "+iLoop+" = "+ans);
}
input.close();
}
}
/**
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment