Java Exp 1
Java Exp 1
PROGRAM STATEMENT:
Objective:
In this challenge, we're going to use loops to help us do some simple math.
Task:
Given an integer, N, print its first 10 multiples. Each multiple N x i (where 1 ≤ i ≤ 10)
should be printed on a new line in the form: N x i = result.
Input Format:
A single integer, N.
Constraints
2 ≤ N ≤ 20.
Output Format
Print lines of output; each line (where 1 ≤ i ≤ 10) contains the result of N x i in the form:
N x i = result.
Sample Input
Sample Output
2x1=2
2x2=4
2x3=6
2x4=8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
PROGRAM CODE:
OUTPUT:
NONE
LEARNING OUTCOMES:
• Apply different techniques to decompose a problem and programmed a solution with its sub modules.
• Analyze and explain the behavior of simple programs involving the programming addressed in the
course.
• Implement and evaluate the programs using the syntax and semantics of object-oriented
programming.
• Design the solution of real-world problems in order to determine that the program performs as
expected.
Evaluation Grid: