Computer Science, asked by peesa958hsl, 9 months ago

write a program on to find sum ,difference,product,qutionent,and reminders of two numbers​

Attachments:

Answers

Answered by jethavasmart58com
1

Answer:

answer

Explanation:

answer of this question is correct.

Attachments:
Answered by Anonymous
0

//java program

import java.util.*;

public class Number

{

⠀⠀public static void main (String args [])

⠀⠀{

⠀⠀int a , b , s , d , p , q , r;

⠀⠀System.out.println("enter the two numbers:");

⠀⠀a = in.nextInt();

⠀⠀b = in.nextInt();

⠀⠀s = (a+b);

⠀⠀d = (a-b);

⠀⠀p = (a*b);

⠀⠀q = (a/b);

⠀⠀r = (a%b);

⠀⠀System.out.println("Sum of the two numbers =" +s);

⠀⠀System.out.println("Difference of the two numbers =" +d);

⠀⠀System.out.println("Product of the two numbers =" +p);

⠀⠀System.out.println("Quotient of the two numbers =" +q);

⠀⠀System.out.println("Remainder of the two numbers =" +r);

⠀⠀}

}

Similar questions