JavaTech
Pages - Menu
(Move to ...)
Home
Compilation Process
Algorithms || Introduction
▼
Pages
(Move to ...)
Algorithms || Introduction
Compilation Process
▼
Wednesday, December 16, 2015
Java program to print the Division of 2 numbers
Divide two numbers:
public class Divide
{
public static void main()
{
int a,b,result;
a=20;
b=10;
result=a/b;
System.out.println("Division is "+result);
}
}
Thank you and make sure to like and comment.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment