Create a program using switch statements that will ask the user to input an intege

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

Programming Language: PHP

2.  Create a program using switch statements that will ask the user to input an integer.

  • If the first Integer is less than 10, get the product of the two input
  • If the first integer is equal to 10, get the sum of two inputs.
  • Otherwise, divide the integer to 10 and get the remainder as output.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT