Observation BB

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Tivi.iou ,dipla4 mo.

OJ Le

1 not aliitb ,then sep inuuosL max,

1 En
PEV ODE

O b , mo. o
End
ELSE , mai b
EDELSE

ord r o r lb= 6
rmoI 1.0

E
EL HLE

aD
PROGRAM
")
a int (Inpur Enten
oa:

unt lInput L"Enter


b: "))
b
ta7b
min J=a

eSe
min l b

ushi )
lalmin o and b }. minl o)
peint ("LeM ",min )
Dak

min minia
FLonCHART
(Staut

numbe, a
Ente Jinst

Second numbe, b
Enten

(ab minl a

4t minf
min | a * 0
Loop tue)
mun 1/. b: :0

Stop n e LcM e
a " and +bt
RESULT
hus the pNO q AOm s+min 1,

wiu be uftten and bMeak


ececutd
SueceA ully
A the natu1U numbe

e r.umbe nuum
r a ü z e gum =0,i=
thaough
wntiL LZ = num
tRepeat step H
S u m = Bum+ l i )

it+1
.Puint thR bum ek dquanl

8StOP
FLOIeA ART

(Statt
Read num mo
N

Sum: 8umtixi

Pint um

(Stop)
PROGIRAM
dey squane Sum n)
lrenate 1 iom
tt and n
tnding
tSquAane et-i
t add te Sum
Sm O

o tin nange li,0+D


Sm Sm+Li*t)

## duven pHE gLam


nint lInpur e n t e r the numbe " ) )
PHint squaé Sum n))

OUT PUT:
Ente1 t h e u m b e n |&

650

RESULT:
J h s the pAOqIam s wRtten and

Pcecuted SucceAS}u
ATM:
FAbona c i s e q u e n Pint
Jo ind the

nth
ALGHORITHM:
n
StaW
&Decane vaiable i, a,b» bhou a
I n i t i a i z e the vasiables ,a =O,o-I ard Ceur

Shouw =D
E n b e the numben ek tems et {lonacu
Seies e upload be pünted. OUTPOT
p u n t n a t two teums et series Entgn
6use
Loop n the eouin >teps Erren
ghouw=atb
Fibonace
b Shouw O, 1 2 , 3,
Incease vauL et ieach tima by
pint the vame o shou

PROGRAM
nteims >16

na
Ceunt O

pintU Please enten a


positwe
Tnteqes1
e n tejms - 1

Pint L' Ftbenacci sequen c RESUT


up
n teMs,
Pinr n1) PM0 ar
8 uLCRSL

ptnt " Fibonacci


v>Rquene p Pte

1
teums "
ubhule Cout < n teumS

Pint (n)end ,
nth-nl+ni
n= n2
a DER
Ceunt+é1

OUTPOT
Entgn the u t mbesl 118
Eiten the becond uumbeN 0

Fibonaci s e q u n ce pte 1O
O, 1,2, 3, B, 8,13, I 34

RESUT
hus,the Fibonaci aeÜS
PMo am witten and eected
euLceSKUlY
ATM
Oo tind the aumstnong numben PR

ALGHORITHM
Stat
Declaie vaiable Sum, temp, um
a Read num o m
HIntalie vaauuabe Sum -O and
temp ru.
Repecut uuntil num 7=O
S u m = Sum + cube e t Last di

LOum) 10)¥ {num 1io)x .

lo)
nuum -
Mum lio
6T Sum= emp
Pint"Amstona numbe
Ese
Pint Not AmsDionA Numben

OUTPUT' HO1
EnteN a mbe
umbe
401 i s a n
m 8 tnong
Ente1 a numben381

381 not an aumstro ng mbet

ReSU ocecteg
Jhns, the MOqIam is
ond wuitten >uccR}ul
PROCRAM
ur int C tnputt Enter a
numbe": )
Sum D
temp = num

uohile temp >6

diait temp /. 1o
Sum dlqit * ¥ 3

Femp - 1o
J num - Sum)
Pintlnuum," an aumstrong no )
es
pin um ,"is not a n aumst tong
FLOA CHART

StatE
Read a numbeanuum

Asian temp - num

wheaehe
temp = O

eached

7.1o
compuute dta9t-temp
temp t e m p / , iD
Sum+Ldiqit* * 3)
Sum

Sum Sup Pint


PARnr numu AS

You might also like