define a procedure named CALC ,which does the following.
Adds any two numbers
subtracts a number from another number
Answers
Answered by
3
Answer:
Natural Numbers (N), (also called positive integers, counting numbers, or natural numbers); They are the numbers {1, 2, 3, 4, 5, …}
Whole Numbers (W). ...
Integers (Z). ...
Rational numbers (Q). ...
Real numbers (R), (also called measuring numbers or measurement numbers)
Answered by
0
Answer:
Program
Explanation:
import java.util.*;
public class CALC {
public static void main() {
Scanner sc=new Scanner
System.out.println("Please enter the smaller number : ");
double a = nextDouble;
System.out.println("Please enter the greater number : ");
double b = nextDouble;
double s = a+b
System.out.println("The sum of given numbers are : "+ s);
double d = b-a
System.out.println("The difference of given numbers : "+d);
}
}
Similar questions
Hindi,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago
Accountancy,
1 year ago