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 Subtraction of 2 numbers
Subtract two numbers:
public class Subtract
{
public static void main()
{
int a,b,sum;
a=10;
b=20;
sum=a+b;
System.out.println("Sum is "+sum);
}
}
Thank you and make sure to like and comment.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment