CASE 1 - Step Program - 4cl Nobleza Sec Mike

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

DEPARTMENT OF INFORMATION TECHNOLOGY

HEADQUARTERS ACADEMIC GROUP


PHILIPPINE MILITARY ACADEMY
Fort Gen. Gregorio H del Pilar, Baguio City

COMPUTER PROGRAMMING 1
3rd Trimester, Academic Year 2021-2022

Cadet 4CL NOBLEZA KER


Cadet _________________
Sec MIKE FOXTROT Coy

Case 1: use a WHILE or DO-WHILE LOOP. Save your program as


Name1Name2Square.java

Write a program that will accept three (3) integer values representing the START,
END and STEP respectively. START must be LESSER than the END and STEP must
be always greater than 0. (Note: Use a series of WHILE Loops). The program shall print
the values starting from the START to the last value lesser or equal to the END
incremented by STEP value.
INPUT
OUTPUT

You might also like