Comando de Entrada e Operadores - Curso de Algoritmos #03 - Gustavo Guanabara
By Curso em Vídeo · more summaries from this channel
31 min video·en··2700980 views
Summary
This video introduces input commands (Read) and arithmetic operators in algorithms, demonstrating how to create interactive programs and perform calculations, while also explaining operator precedence and built-in mathematical functions.
Key Points
- —The 'Read' command takes user input and stores it in a specified variable.
- —Input commands, like 'Read', allow users to enter data into a program, enabling interactivity.
- —Another exercise shows how to read two numbers from the user, calculate their sum, and display the result.
- —A practical example demonstrates how to ask a user for their name and then display a personalized greeting.
- —Arithmetic operators include addition (+), subtraction (-), multiplication (*), division (/), integer division (\), exponentiation (^), and modulus (%).
- —Operator precedence dictates the order of operations in an expression, with parentheses having the highest priority, followed by exponentiation, multiplication/division, and finally addition/subtraction.
- —When calculating an average (N1 + N2) / 2, it's crucial to use parentheses to ensure the addition is performed before the division, or to declare variables as REAL to handle decimal results correctly.
- —Visualg provides built-in mathematical functions such as ABS (absolute value), EXP (exponentiation), INT (integer part), SQRT (square root), PI, and trigonometric functions (SIN, COS, TAN).
- —The video encourages viewers to practice by creating their own algorithms, using variables, input/output commands, operators, and functions.
- —Future lessons will cover relational operators, logical operators, and number formatting.
Copy All
Share Link
Share as image
Bookmark
More Resources
Get key points from any YouTube video in seconds
More Summaries

Claude Code built me a $273/Day online directory
55 min·en

GSP teaches Lex Fridman how to street fight
6 min·en

What ACTUALLY Makes People Buy Things (Pricing Psychology Explained)
16 min·en

GSP teaches Lex Fridman how to street fight
1 hr 49 min·en

Jordan Peterson: Life, Death, Power, Fame, and Meaning | Lex Fridman Podcast #313
3 hr 3 min·en