Question: JAVA ONLY Write a program that prints the results as instructed - First character of each line is a command character. A means the product
JAVA ONLY

Write a program that prints the results as instructed - First character of each line is a command character. A means the product of a range of numbers; B means the factorial computation. If the line is illegal, print "error". If the command is A, then the rest of the line will contain a number of integers (each integer >=0; =1 & x,y=1;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
