The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by โยษิตา า., 2022-09-19 06:43:19

flowchart.drawio

flowchart.drawio

แสดงสูตรคูณแม่5

Stat
Print ''สูตรคูณแม่5''

Y=1

MULTIPLY=0
x=5

MUULTIPLY=X*Y
Print X ''*'' Y ''=''  MULTIPLY

T Y=12 F
Y=Y+1 Stop

รับชื่อพนักงาน3คน

Stat

Loop=1

Print ''โปรดระบุชื่อพนักงาน''

Read Name

Print Name

TF
if Loop<3

Loop=Loop+1 Stop

รับชื่อนักศึกษา3คน

Stat

Loop=1

Print ''โปรดระบุชื่อนักศึกษา''

Read Name

Print Name

TF
if Loop<3

Loop=Loop+1 Stop

แสดงเงินที่พนักงานได้รับเเละเงินรวมทั้งหมด

Stat

TOTAL=0

B Money=0

Read Income

T F
Income=Incomes-0
if Income<=2000

Incomes=(Income-(Incomes*4)/100)

Money=Incomes
A

A

TOTAL=TOTAL+Money
Print Money

Print ''ท่านต้องการคำนวณจำนวนเงินของ
พนักงานที่จะได้รับอีกหรือไม่(Y/N)?''

Read Ansuer

TF
if Ansuer=''Y'' then

B Ptint TOTAL
Stop

แสดงเลขคี่1,3,5,..100

Stat

Number=1

Print Number

T F
if Number<100

Number=Number+2 Stop

แสดงรหัส ชื่อนักศึกษาเเละเกรด

Stat

Loop=1

C
Pong=0

Print ''รหัสนักศึกษา''
Read ID

Print ''ชื่อนักศึกษา''
Read Name

Print ''คะแนนเก็บไม่เกิน 10''
Read A

Print ''คะแนนสอบระหว่างภาคไม่เกิน 50''

A

A
Read B
Print ''คะแนนสอบปลายภาคไม่เกิน 40''
Read C
Pong=A+B+C

grade=''A'' T
grade=''B'' Pong>=80
grade=''C''
grade=''D'' F
T

Pong>=70

F
T

Pong>=60

F

T
Pong>=50
F
grade=''F''

Print ID,Name,grade

B

B

T F
if<22

Pong=Pong+1 Stop

C

Hello100ครั้ง

stat

messge= Hello

x=1

Ptint messge

 

x=x+1

TF
if x<=100

Stop

แสดงผลลัพธ์การบวกเลข2ชุด

Stat
Y=1

Num=0
X=2

Num=X+Y

Print X ''+'' Y ''='' Num

T F
if Y<2 Stop

Y=Y+1

เเสดงข้อมูลของการรับผลATK

Stat
Loop=1

count=0
Print ''เลือกกรอกอย่างใดอย่างหนึ่ง''

Print ''กรอกโควิดขึ้น1ขีด ''
Read ATK1

Print ''กรอกโควิดขึ้น2ขีด ''

Read ATK2

Print ATK1,ATK2

T if <100 F
count=count+1 Stop


Click to View FlipBook Version