You are on page 1of 2

1CA Ttm onthcatat Aigment

JAVA TRONRAM USIN


ODPsy
LODP
AI
1o u a Java
AM ing toops
ALGCRIIM
Atep 4: ptn, a Acepad window ond statk byping
ht java COde

Ste p CKate a clasname "as i t u 1Kiogte Omd


declas tne nt eMny NOa fa hat dam

Step 3 ut Mi put tmou ga ham Int) metnod -


am tlho di g clau'
tep tat the olue mde tme vasiahle M

he MUmhu
t&p6 RLpat step 6 uing while op i
K a t a s han 0

PAint CUsRLn umbt in Vct.ecl


Ri omgie tattun a timt wng fa op

Step AV hnetepad Rle as JnVMETaiomgte java.

tOMpile hL 0NaM wing avac COmand


Btep&

Mtep : Aitue dhe tlas wn ava comMand

StOp h pToCes
Wtep tD
CODE
clas InYnt 1gianqte

nubtic staric veid main (string angst

int num Jnteger pame mt. (algs [oT);


Aile (ruun >o) f
*

e (intiIi jk: um j1t)


+ nm+);
System eut trnt

áystem Put tintAn);

CrLtput Jnvdt 1iange, 6, i


6 66 6 nn

o 1f
ResULT
Thus dhe
ava oqam uing boops i
Au teanuly ARLUted oops d

You might also like