Integer - PowerPoint PPT Presentation

About This Presentation
Title:

Integer

Description:

Title: Author: Customer Last modified by: Customer Created Date: 12/15/2006 5:48:45 AM – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 7
Provided by: naro200
Category:
Tags: algor | integer

less

Transcript and Presenter's Notes

Title: Integer


1
???????? ??????????????? ???????????
  • ???????????????? ? ????????????????

2
???????? ???? ??????
  • Integer ????? ??? (1, - 471, 23, -234)
  • Word ????? ??? (0, 1, 35, 199)
  • Real ???????????? ???. ?.? ??????? (1.2, 0.34,
    -2.3, 5.0, -65.0)
  • Boolean ?????????? ??? (????? ??? ???????? True
    ? Falsh)
  • Char ?????????? ??? (???????? ????? ??????)
  • String ????????? ??? (???????? ???????
    ????????)

?????????? ??????????
Var A Integer B, C Real D Integer
???????? ??????????, ??????? ????
???????????? ? ????? ????? ?, ? ???????
????? D ????? ?????
3
???? ??????
  • ????????? ????? ????? ??? ????, ????? ???????????
    ?????????? ???????? ????????
  • 1 ?????? ??????? ????????????
  • ?5
  • B7
  • CAB
  • 2 ?????? ??????? ????? ? ??????????
  • read ln (?????? ?????)
  • read (A) readln (A)
  • read (B) readln (B)
  • read (A,B) readln (A,B)

4
???????? ??????
  • ???????? ?????? ????? ??? ????, ????? ??????? ??
    ????? ???????? ??????????
  • ??????? ??????
  • write ln (?????? ??????)
  • write (A) writeln (A)
  • write (B) writeln (B)
  • write (A,B) writeln (A,B)
  • writeln (????????? ?????????)

5
???????? ?????????
  • ?????? ?????
  • If ???????
  • then ??????? 1
  • else ??????? 2

???????? ????? If ??????? then ??????? 1
6
????????? ?????
  • ???? ? ????????????
Write a Comment
User Comments (0)
About PowerShow.com