Java Program Showing Multiplication by a Number

    Java Program Showing Multiplication by a Number

 If you want to copy, copy below this line.

/*
         This is a Simple Program Showing Multiplication.
          Program developed by Asad Hussain
         This file name is "Multiply.java".
*/
import java.util.*;

public class Multiply{

public static void main(String args[]){

int num; //declares a variable num

num=50; //assigning value to num

System.out.println("This is num:"+num);

num=num*2;

System.out.println("The value of num * 2 is");

System.out.println(num);




}
}

Output of Given Program:
Java Program Showing Multiplication by Asad Hussain

Written By: Asad Hussain

Post a Comment

Previous Post Next Post