Math, asked by Diyaaaa4284, 1 year ago

Write a program in foxpro to find the sum,differance,product,quotient of any two number


hinakhan000: why
akifjameel: u r intrested in cricket
hinakhan000: yeah, @buhat. @zadi
akifjameel: I don't know why
hinakhan000: only cricket is my fav game
akifjameel: bs
akifjameel: @tumhari
hinakhan000: Mari kya
akifjameel: @aadat
akifjameel: ho

Answers

Answered by akifjameel
2

Answer:

Hii.......................................

Answered by Anonymous
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