Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmoha943/ayed_pascal
Ejercicios de pascal de UTN FRRO
https://github.com/elmoha943/ayed_pascal
hacktoberfest pascal
Last synced: about 1 month ago
JSON representation
Ejercicios de pascal de UTN FRRO
- Host: GitHub
- URL: https://github.com/elmoha943/ayed_pascal
- Owner: ElMoha943
- Created: 2021-06-10T11:05:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-21T21:17:09.000Z (about 3 years ago)
- Last Synced: 2023-05-20T07:28:15.316Z (over 1 year ago)
- Topics: hacktoberfest, pascal
- Language: Pascal
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# AyED_Pascal
Ejercicios de pascal de UTN FRRO### [Guia para tener de referencia](https://www.tutorialspoint.com/pascal/index.htm)
### Template
```Pascal
Program EJ6; //Nombre del programa
Uses crt; //LibreriaConst //Variables constantes
Type //Tipos de variable definidos por el usuario (?
notas = array [30] of integer;Var //Variables globales
i:integer
Notas:notas
Cant:integer
Prom:floatbegin //Las estructuras se encierran entre begin y end ( {} )
For i := 1 to 30 do
Begin
writeln ('Ingrese una nota'); //Escribir
readln (Notas[i]); //Leer
Prom := Prom + Notas[i] //En pascal se asigna (<-) con := y no con =
End;
Prom:=Prom/30
For i := 1 to 30 do
Begin
If(Notas[i]>=Prom) //Si solo hay una instruccion dentro no requiere poner begin y end
Cant := Cant + 1
End;
writeln(,' alumnos obtuvieron nota superior al promedio')
readkey(); //getch(), espera a que se pulse una tecla para dejar leer la consola.
end.
```### Operators
Operator | Operation | Operands | Result
------------ | ------------- | ------------ | -------------
'+' | Addition or unary positive | real or integer | real or integer
'-' | Subtraction or unary negative | real or integer | real or integer
'*' | Multiplication | real or integer | real or integer
'/' | Real division | real or integer | real
'div' | Integer division | integer | integer
'mod' | Modulus (remainder division) | integer | integer### Standard Functions
Function | Description | Argument type | Return type
------------ | ------------- | ------------ | -------------
abs | absolute value | real or integer | same as argument
arctan | arctan in radians | real or integer | real
cos | cosine of a radian measure | real or integer | real
exp | e to the given power | real or integer | real
ln | natural logarithm | real or integer | real
round | round to nearest integer | real | integer
sin | sin of a radian measure | real or integer | real
sqr | square (power 2) | real or integer | same as argument
sqrt | square root (power 1/2) | real or integer | real
trunc | truncate (round down) | real or integer | integerFunction | Description | Argument type | Return type
------------ | ------------- | ------------ | -------------
chr | character with given ASCII value | integer | char
ord | ordinal value | integer or char | integer
pred | predecessor | integer or char | same as argument type
succ | successor | integer or char | same as argument type