Programming Language: PHP 1.  Create a program using if, ifelse, else statement that will ask the user to input two integers. If the first Integer is less than the second integer, get the product of the two input If both integers are equal get the sum of two inputs. Otherwise, divide the integer and get the remainder as output. 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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
icon
Related questions
Question
100%

Programming Language: PHP

1.  Create a program using if, ifelse, else statement that will ask the user to input two integers.

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

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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning