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_3
- {
- public static void main(String[] args)
- {
- long integer=1; //Declaring and Initializing Variables
- int i=1,j=2,k=8,l=1,m=1,n=9; //Declaring and Initializing Variables
- for(i=1;i<=9;i++)
- {
- for(m=1;m<n;m++)
- {
- System.out.print(" "); // Adding Spaces to form a specific shape
- }
- System.out.println(" "+ integer +"x" + k + "+" + l +"="+ (integer*k+l) +"");
- integer=integer*10+j; //Modifying Variables
- l++;
- j++;
- n--;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement