R4R Java SourceCode Java Example of Multiplication

Java Example of Multiplication

In this example we simply multiply two numbers.

SOURCE CODE

class num
{
public static void main(String args[])
{
int num;
num=100;
System.out.println("this is num:"+num);
num=num*2;
System.out.println("the value of num*2 is");
System.out.println(num);
}
}

Download Source File