Assignemnt #110 Displaying Some Multiples

Code

    ///Name: Morgan Kaplan
    ///Period: 5
    ///Project Name: Display Some Multiples
    ///File Name: DSM.java
    

import java.util.Scanner;
public class DSM
    {
    public static void main( String[] args)
        {
            Scanner momo= new Scanner(System.in);
     
     int Nu, sum=0, a=12;
        
        System.out.println( "I will display all the multiples from 1-12 of the number you give me.");
        System.out.println( " Number: " );
        Nu=momo.nextInt();
       
        for ( int n=1; n<=a; n=n+1)
        {
        int p=Nu*n;
        System.out.println( " " + Nu + " * " + n + " = " + p + " " );  
        }
        
        }
        }
    

Picture of Output

Assignment 110