SlideShare a Scribd company logo
1 of 17
koya technical institute
{Pascale language programing} Name student : banaz hilmy
Supervisited: M.taib-sh-
abdulsamand
2022/2023
Out line:
• About Pascal (programming language)…..
• General Program Skeleton……
• Pascal Hello World Example……
•Decision Making In Pascal…….
• loop in pascal………
About Pascal (programming language)…..
- is a historically influential imperative and procedural
programming language.
- designed in 1968-1969 and published in 1970 by Niklaus With as a
small and efficient language intended to encourage good
programming practices using structured programming and data
structuring.
General Program Skeleton
• The basic syntax for a Pascal program:
program name of the program]
var global variable declaration DloCk
function (function declarations )
ocau variables begin
end
procedure procedure declarations
local
Varlables
begin
...
begin ( main program block starts)
end.
Pascal Hello World Example :
program HelloWorld;
uses crt,
Here the main program block starts )
begin writeln ('Hello, World!');
Readkey
end
 begin and end statements are the main program block.
 The end statement indicating the end of the main program is
followed by a full stop (.)
 The lines within ( ..*) will be ignored by the compiler and it has
been put to add a comment in the program.
he statement writeln(Hello, World!'); function in Pascal used to
display Message on the screen.
Decision Making In Pascal
• Decision Making In Pascal:
- if - then statement
- if-then-else Statement
- Case Statement
- Case Else Statement
Decision Making - if - then statement
Syntax for if-then statement is:
if BooleanExpression then
StatementIfTrue;
If the Boolean expression evaluates to true, the statement executes.
Otherwise, it is skipped.
program 1fChecking;
var a:integer;
begin a:= 5;
(* check the boolean condition using if statement ) if ( a < 10 ) then
( if condition is true then print the following *) writeln ('a is less than 10
' );
writen value of a is •
a);
end.
Decision Making - if - then-else statement
Syntax for the if-then-else statement is:
if BooleanExpression then
StatementIfTrue
else
StatementIfFalse;
If the Boolean expression evaluates to FALSE, the statement following the else will be performed.
program irelseChecking;
var
a : integer:
begin
a := 100;
check the condition )
if 8 < 20 then
( if condition is true then print the following )
writeln ('a is less than 201 )
else ( if condition is false then print the following *)
write n a is not less than 20°
writeln ('value of a is :
", a);
Decision Making - case - else of statement
 The syntax of the case statement is:
case (expression) of
L1: S1;
Ln: Sn;
end;
Similar to the if-then -else statement .
Easier to read and understand.
Does not accept String variables.
Loop in pascal :
Loop in pascal
_ while- do
_for-do
_ repeat until
while- do loop
The syntax of a while-do loop is :
While ‹condition> do
begin
The computer will do something;
end;
Where condition is a Boolean or relational expression, whose
value would be true or false and the computer will do something is
a simple statement or group of statements within begin ... end
block.
program Whileloop
MAY
x: integer:
begin
while loop will start from one
while
x<do twhile
nOt
begin
11 y mod 2 = 0 then
condition to
write (x, ' "):
Kara increment o
end: ('end of while loor
end
Output
: FOR-DO LOOP
• The syntax of for-do loop as follows:
for low to high do begin
The computer will do something;
end:
for high downto low do begin
The computer will do something;
end:
program Forloop;
TalL
x: integer;
begin begin
write (x,' ');
end;
for x:=1 to 10 do (*this mean x is less than or equal 10*)
end
REPEAT UNTIL LOOP
Unlike for and while loops, which test the loop condition at the top of the
loop, the repeat ... until loop in Pascal checks its condition at the bottom of
the loop.
The syntax of the repeat until as follows:
repeat
The computer will do something; until<condition›;
Program RepeatUntil;
x:intederi begin
(* repeat until loop execution )
repeat
writex.
X-X+
until y = 11:
"):
end.
banaz hilmy.pptx

More Related Content

Similar to banaz hilmy.pptx

Loop and while Loop
Loop and while LoopLoop and while Loop
Loop and while LoopJayBhavsar68
 
C++ control structure
C++ control structureC++ control structure
C++ control structurebluejayjunior
 
Switch case and looping kim
Switch case and looping kimSwitch case and looping kim
Switch case and looping kimkimberly_Bm10203
 
Programming basics
Programming basicsProgramming basics
Programming basics246paa
 
My programming final proj. (1)
My programming final proj. (1)My programming final proj. (1)
My programming final proj. (1)aeden_brines
 
C++ Course - Lesson 1
C++ Course - Lesson 1C++ Course - Lesson 1
C++ Course - Lesson 1Mohamed Ahmed
 
Fundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinaFundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinarurumedina
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)jahanullah
 
Presentation on nesting of loops
Presentation on nesting of loopsPresentation on nesting of loops
Presentation on nesting of loopsbsdeol28
 
While-For-loop in python used in college
While-For-loop in python used in collegeWhile-For-loop in python used in college
While-For-loop in python used in collegessuser7a7cd61
 
Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!olracoatalub
 

Similar to banaz hilmy.pptx (20)

My final requirement
My final requirementMy final requirement
My final requirement
 
Loop and while Loop
Loop and while LoopLoop and while Loop
Loop and while Loop
 
C++ control structure
C++ control structureC++ control structure
C++ control structure
 
C++ programming
C++ programmingC++ programming
C++ programming
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Switch case and looping kim
Switch case and looping kimSwitch case and looping kim
Switch case and looping kim
 
C++ programming
C++ programmingC++ programming
C++ programming
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
My programming final proj. (1)
My programming final proj. (1)My programming final proj. (1)
My programming final proj. (1)
 
C++ Course - Lesson 1
C++ Course - Lesson 1C++ Course - Lesson 1
C++ Course - Lesson 1
 
Loops
LoopsLoops
Loops
 
Fundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinaFundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medina
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)
 
PHP slides
PHP slidesPHP slides
PHP slides
 
C++ loop
C++ loop C++ loop
C++ loop
 
Programming in Arduino (Part 2)
Programming in Arduino  (Part 2)Programming in Arduino  (Part 2)
Programming in Arduino (Part 2)
 
Presentation on nesting of loops
Presentation on nesting of loopsPresentation on nesting of loops
Presentation on nesting of loops
 
While-For-loop in python used in college
While-For-loop in python used in collegeWhile-For-loop in python used in college
While-For-loop in python used in college
 
Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!
 

Recently uploaded

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 

banaz hilmy.pptx

  • 1. koya technical institute {Pascale language programing} Name student : banaz hilmy Supervisited: M.taib-sh- abdulsamand 2022/2023
  • 2. Out line: • About Pascal (programming language)….. • General Program Skeleton…… • Pascal Hello World Example…… •Decision Making In Pascal……. • loop in pascal………
  • 3. About Pascal (programming language)….. - is a historically influential imperative and procedural programming language. - designed in 1968-1969 and published in 1970 by Niklaus With as a small and efficient language intended to encourage good programming practices using structured programming and data structuring.
  • 4. General Program Skeleton • The basic syntax for a Pascal program: program name of the program] var global variable declaration DloCk function (function declarations ) ocau variables begin end procedure procedure declarations local Varlables begin ... begin ( main program block starts) end.
  • 5. Pascal Hello World Example : program HelloWorld; uses crt, Here the main program block starts ) begin writeln ('Hello, World!'); Readkey end
  • 6.  begin and end statements are the main program block.  The end statement indicating the end of the main program is followed by a full stop (.)  The lines within ( ..*) will be ignored by the compiler and it has been put to add a comment in the program. he statement writeln(Hello, World!'); function in Pascal used to display Message on the screen.
  • 7. Decision Making In Pascal • Decision Making In Pascal: - if - then statement - if-then-else Statement - Case Statement - Case Else Statement
  • 8. Decision Making - if - then statement Syntax for if-then statement is: if BooleanExpression then StatementIfTrue; If the Boolean expression evaluates to true, the statement executes. Otherwise, it is skipped.
  • 9. program 1fChecking; var a:integer; begin a:= 5; (* check the boolean condition using if statement ) if ( a < 10 ) then ( if condition is true then print the following *) writeln ('a is less than 10 ' ); writen value of a is • a); end.
  • 10. Decision Making - if - then-else statement Syntax for the if-then-else statement is: if BooleanExpression then StatementIfTrue else StatementIfFalse; If the Boolean expression evaluates to FALSE, the statement following the else will be performed. program irelseChecking; var a : integer: begin a := 100; check the condition ) if 8 < 20 then ( if condition is true then print the following ) writeln ('a is less than 201 ) else ( if condition is false then print the following *) write n a is not less than 20° writeln ('value of a is : ", a);
  • 11. Decision Making - case - else of statement  The syntax of the case statement is: case (expression) of L1: S1; Ln: Sn; end; Similar to the if-then -else statement . Easier to read and understand. Does not accept String variables.
  • 12. Loop in pascal : Loop in pascal _ while- do _for-do _ repeat until
  • 13. while- do loop The syntax of a while-do loop is : While ‹condition> do begin The computer will do something; end; Where condition is a Boolean or relational expression, whose value would be true or false and the computer will do something is a simple statement or group of statements within begin ... end block.
  • 14. program Whileloop MAY x: integer: begin while loop will start from one while x<do twhile nOt begin 11 y mod 2 = 0 then condition to write (x, ' "): Kara increment o end: ('end of while loor end Output
  • 15. : FOR-DO LOOP • The syntax of for-do loop as follows: for low to high do begin The computer will do something; end: for high downto low do begin The computer will do something; end: program Forloop; TalL x: integer; begin begin write (x,' '); end; for x:=1 to 10 do (*this mean x is less than or equal 10*) end
  • 16. REPEAT UNTIL LOOP Unlike for and while loops, which test the loop condition at the top of the loop, the repeat ... until loop in Pascal checks its condition at the bottom of the loop. The syntax of the repeat until as follows: repeat The computer will do something; until<condition›; Program RepeatUntil; x:intederi begin (* repeat until loop execution ) repeat writex. X-X+ until y = 11: "): end.