Professional Documents
Culture Documents
:
youvA|
Dato:
Algoithm
Step stast
SteP 2 Tead numbe e
SteP 3 set Fact , iz
Step4 check condition ix: numbet if false go to
Step 7
step 5 Foct Fact i
step 6 updade ia it 90 to Step
Step 7 Display Foct
Step 8 stoP
Page No.:
YouvA
0ate
Flow Chast
Fact L
NO
Tum
Yes
Fact. Fact * I
ispla y Fact
Page No.: YoUvA
Date:
Poogsam
alassFacBosial Example
int i Fact i
int numbea S
to calculate Factrooia
l l t i 9 the numbe&
Foe Ci - 1 , i<
numbe8 I** )
Fact Fact*i
Output
S 120
Factosial of 5
Pago No.
Date: YouVA
Algosihm '
Stepi- stast
Step 2 Read the 8taing Fsom the use
ivoe*
Step 7 PTint TEV
Step 8 StoP
Page No.
YouvA
Date
Flo chast
Stost
calculate h e length of
the shsin g
Initialize dev a s a n
empty stsing
initiadize i- length -
Tev-oeV * Charsacte& a
Posiior i) of h e sOng
Decement i ' by 4
yeg
is i > o
NO
/ psint sev
stoB
Page No.
YouvA|
Dato:
p30gsam
i- )
fos Cinti shsing length () -1 > i 7:0
3
System out paintIn "'ouginad stoing"
.
+ Slmin g ),
output
osigina shing ream biq
Revesse of given sng gib maesd
Page No youv
Sechon L Date
ulsite in
.4
Foame
a
java psogsam to disploy
window with pink Golou& at
a String
backgso und
using ALJT.
psogsam
implements Mouselistenee
Label
Main C
dispose (),
Page No. YoUvA|
Date:
ne main ( ,
Output:.
AMT Pink
Tbis js Jabel