Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * @Description: Number Relations
- * @Author: Anuj Radia
- * @Since February 21st
- *
- */
- public class Repetition_Part2_1
- {
- public static void main(String[] args)
- {
- long integer=1; //Declaring and Initializing Variables
- int i=1,j=10,k=0,l=18; //Declaring and Initializing Variables
- for(i=1;i<=9;i++)
- {
- for(k=1;k<l;k++)
- {
- System.out.print(" "); // Adding Spaces to form a specific shape
- }
- System.out.println(" "+ integer +"x" + integer + "=" + (integer*integer) +"");
- integer=integer+j; //Modifying Variables
- j=j*10;
- l=l-2;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement