Last Updated:

Pascal alphabet

In each programming language, it is required to know the alphabet so that the user has the opportunity to fully write code and get a meaningful result from it. After all, if you do not know about the structure of the program, the basic concepts, and so on, there can be no question of subsequent training. So, in this material it is worth focusing on just the elements of the language, as well as the main thing that the user needs to know from the very beginning of Pascal training.

Basic concepts and operators of the Pascal language

There are several action operators in Pascal. Each of them has its own action, so users will have to use them depending on the situation. The basic operator that the user will work with most of the time is the one that assigns a variable to a particular value. It is possible in this case to use different elements to carry out such an action.

Here's an example of how to use the assignment operator:

f := 3 * C + 2 * sin(x);


Also, it is worth considering that there are signs that are subject to "seniority". Here is a list in order from the most significant to the least significant character in the Pascal code when using the assignment operator:


  • not;
  • *, /, div, mod, and;
  • +, -, or;
  • =, <, >, <>, <=, >=, in.

Also, it is important to know a couple of other facts. The first is that an expression in parentheses, as in ordinary mathematics, is performed earlier than what is beyond the boundary. Second, assignment is allowed for all types of variables, excluding files. In general, a person needs to be careful when writing code, taking into account such rules.

A slightly more complex part of the basics on operators is composite operators. The name of such speaks for itself - a person is given the opportunity to use combined into one operator. And here one sequence is performed. As for its structure - it is not complicated and will not confuse a person. That is, it looks something like this:

i := 2;
k := i / 5

It begins with "Begin" and ends with "End". Inside it, various actions are carried out, which, after all, are mathematical expressions. When repeating the use of composite statements, users must use a semicolon after each "End". And when the last one is set, you need to use a period.

Language elements


Of the main elements of the language, several are noted:

  • Operators. They determine the structure of the program, constituting just its own;
  • Keywords. Required to highlight certain code fragments. They do not execute, so the compiler simply ignores them;
  • Compiler directives. Special elements that are intended for compilation and do not affect the program.

Also, to perform certain operations, a special alphabet is used. And it consists of the following elements:

  • 26 Latin capital and lowercase letters;
  • Underscore "_";
  • 10 digits, including all, from 1 to 0 on the keyboard layout;
  • Operation signs like +, -, *, =, / and so on;
  • Limiters of different kinds - (* *), {}, [] and similar;
  • Specifiers denoted by special characters: ^, #, $;
  • As well as service words that are reserved for certain actions.

With the help of all this, just the same, the code in Pascal is made. However, it is necessary to understand that there are certain rules that contribute to the correct operation of the code. But this will already be considered in the future, when a person delves into the topic.

Structure of the Pascal programme


The general appearance of the program is not so complicated. It consists of a title, a list of constant values, a description of the variables, and then the composite statements (begin, ..., end), which are required for correct operation.

In general, it looks like this:


According to this pattern, almost any result can be obtained. So, a person will be given the opportunity to create anything. Consequently, the user will not experience any restrictions in this. This, of course, is a plus. So, it will be possible to write codes in Pascal without any problems. And no matter how different they are in purpose, they will have the same structure, because this is the language given to man.


Pascal alphabet
#include <stdio.h>

int main()
	int i, j, alphabet,  rows;

	printf("Enter Right Pascal Triangle of Alphabets Rows = ");
	scanf("%d", &rows);

	printf("The Right Pascal Triangle Alphabets Pattern\n");

	alphabet = 65;
	i = 0;

		j = 0;
			printf("%c ", alphabet + j);

		} while (++j <= i);


	} while (++i <= rows - 1);

	i = rows - 1;
		j = 0;
			printf("%c ", alphabet + j);

		} while (++j < i);

	} while (--i > 0);