Computer Science, asked by uttamkumar9097, 1 year ago

define a procedure named CALC ,which does the following.
Adds any two numbers
subtracts a number from another number ​

Answers

Answered by heroboy53
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 SugamMitra
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