Professional Documents
Culture Documents
20 ond A Jo3npuui
Coun hou 2 wiheut
Ho manH
gnpsd N
R uÒS 2
Let X 2
let X L 20 n p i t
30 W X <= N
Let E 0 OX= X *2
Let O SO
hilz X <= 0 O lend
anumlea "; N_
Snput R =N -X
g N MoD 2 O hn E1 d
N MOD 2 hÁ O=Ot1 Paint"Quatrt= Q
Paint Parnond R
_X X+ nd
NendL
Print Numie euen
Pint Nuroerc
-
N T
PVS
p MO
27ro
dUM
o
U
6
d pru u
O WAP to nput a number ahd pruntt
a prme Aumber
or not
20
= 1 Ca
bALm N 30 Whil X<N_pd
Lnpu N m a d X > X=O then C C
201 Whle X<=N-1 nd
30 =
SO =X+
X wWend
R nt Nat a
M= N mdcd X dsu"elsiPunt "PAAe
Bo 9f 0
DM mod X = the Wend
20 End
Taput ler N-
M N
h h i l X <=M
a Mmad/Xa 0 tben Ca Ct
Wend
F2
s mod 25
X GO E = 10^D
mlen 9 MSnod = N hon pabt
Sapt 100
N *N nnmlea"
M =NN
))
auulonosargh-
nhil M<>0 L1o End
R =M msol 10
M= M -RYLO.
DON E DOM+1
taDON
)1o.
e W BaAL.
LLany Kunsdiens P f ocoluct and pait Ahu
Z Wbere z= Nhazty3) volu
GW BASICh a proLdedA g m e
dodnAiUe
Athan
C i e n J w e tapes s h u n t i s r i Jake he valAADA nandd yasrpu
t.
a )N u m i u i e J u n c d i e h s .
10 nput valuu e ' ; X
b)S.thing undiens
20 npuut aluu of y"
Numerc functhions 30 Z 5qr["2+ yk
PruintZ
lnnd
Sqr(n)=GuvesAhi sqahL hSt0 a 50
umle
or
TT Ca) Removesdecimal potión from pQAI
twe number_and removesdecmaL 10 Znpuut "valuu of &y"; X,Y
portiom r o e and q u e s h e t 2 0 Let S X*2
louwelt humbenA MLgawe nu 30Let R y^3
H0 Lct Z Sqr (StR)
So Prunt "Valuu o z ",Z
ARSCn)= Lieralls 4uust print the nLmber 60 nd
without_A9nd.
d g , hu R = M mod 10
dus c
dus
th ouguro2.dugt Lnt CM/1D)
59
P+S = N Jhar prt
5 G= u45 "hpwsl runioe
1445 =59 Eerd
ppArk"nop, tapal
P 1
npt 2iense " N WAP Jo npud 20 nurrbos and
Le M= N Lnt
hil M<z DII PAIiAe.
D-D+R IOFo A 1 ta 20
P: p*e 2 reUs "nt wsrhe'yl
M IT (M/LO) 3 Sqn Ln)
vlend O an prrtgoti
D+P hn prunt "Lpial Let P-P1.
alu
Jhan
D
cálculat
ualu thanio
RIGHTnf, a)= uies sight
R1 tVb-4AC Left $ Cn$nla Ruerie
Right $
npuut "ntun waliuA U
BC A;E. MID nl,n,mn)= Puuinthamnfo
Li D 8 2 - 4"A*C
D > O then d RiB +SarL
-4A*C)and
CHR$ nl O canAnent a
npd " ntu oluus o 4, 8 C"A;R:C ASCLL
alphalut
Let D E B2- 4* A*C
Pnint D ASC Cn) 4ui valiuu
D2O then R1- P+ Sar (D and
d p i t Ri
nd STR^U to cuenf
UPPERCASE
LOWERCASE 9 t122
PaLnÍ Lasn
slnings
npud tws stuing " Af BA WAP to npt a
LO Ynput TA
Aaepanate tig
uiis and puint e
(AL) >
2 0P LEN pawit BL
'LENB
npnat
Af ela
O
A
30 n A EN CA)
uod
and it uhe
L
pAAit t 20
30 for n = 1 t s A
nput a
input RACIC C R$ MIDf(An,n)
IC Go PRunt R
SLC 60 Nent_vL
ASIC 7 0 End
BASIC
10 n p u t "a wphd
N Wut a
20 A LEN[N and
and Arunt ADa palundrs
SoNent X
6O S$ = NS_then phunt } "u a palinde
else Phunt SS ne Apalund-
70 End
CeYt a WeP t o l n i n .
Onsgnam A
VAP a aall luttins And ond conu-
umrd
unid