TD_pascal
This page introduces computer programming students to the syntax of the pascal programming language.
To calculate and output the product of 9 and 8
Writeln(9 * 8);
Write a pascal statement to calculate and output the product of 9 and 8:
Laptops for students again. Hope they will be put to proper use. All the hardware in the world without the right software will not benefit students.
Program Development
The fist step is :
DEFINE THE PROBLEM
Tips to fight inflation
1. Postpone large purchases
2. Stick to your budget
3. Forget about foreign vacations. Try a stacation.
Pascal is a structured high-level language.
This means it uses English-like words as commands.
READ, WRITE, BEGIN, END.
Writeln('X + Y');
If X = 2. And. Y = 3
What will the output be?
Scroll down for answer
I
I
I
I
I
I
I
OUTPUT. : X + Y
What's the command to accept input?
Pascal is no longer a popular language as it once was but we can still learn much from its syntax
Writeln('Hello Students');
Write an output statement to output the product of 5 and 6:
Scroll down for answer :............
Writeln( 5 * 6 );
Pascal :Question and Answer
Q. code to output the sum of 12 and 8
A. writeln(12+18);
If we write this code the output will be 24
writeln(12 * 2);
Write code to output the sum of 12 and 8
.................................................................