Write a program in foxpro to find the sum,differance,product,quotient of any two number
hinakhan000:
why
Answers
Answered by
2
Answer:
Hii.......................................
Answered by
2
import java.util.*;
public class Number
{
⠀⠀public static void main (String args [])
⠀⠀{
⠀⠀Scanner in = new Scanner (System.in);
⠀⠀int a,b,s,d,p,q;
⠀⠀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);
⠀⠀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);
⠀⠀}
}
Similar questions