Programme to find sum and difference between two number

This program is to find the sum and the difference between any two numbers.
We write bufferedReader to input the no. from the user.The number will initialize in a and b.We use c to store the sum and difference between number a and b.And finally we print it.
Here above we can see that the program when we want to run it ask input from the user.
Support the input a=87 and b=17 then the sum is 104 and difference is 70.So this is the basic program of java using bluej.

Comments

Popular posts from this blog

Programme to find the longest word in the sentence

Program to find the prime no. between the given range