Back To Java Basics Index
//program to input two numbers and find the difference between them public class differencetwointegers { public static void main(String[] args) { int a,b; int diff; a=20; b=10; diff=a-b; System.out.println("difference between a and b is " + diff); } }