Untitled
unknown
plain_text
a month ago
528 B
0
Indexable
Never
public class sumdiffquad { public static void main(String[] args){ int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); int sum = x + y; int diff = x - y; int product = x*y; int quot = x/y; int remai = x%y; System.out.printf("The Result of operations on %d and %d are:\nSum = %d\nDifference = %d\nProduct = %d\nQuotient = %d\nRemaider = %d", x, y, sum, diff, product, quot, remai); } }
Leave a Comment