Flashcards
Algorithm in Pseudocode
Flashcards do conjunto (8)
- 1Ask the user to enter a number and store that number in a variablenumber=input("Please enter number ")
- 2Store the number 26 in a variableNumber=26
- 3Multiply 5 by 10 and store the answer in a variable5 * 10=Number
- 4Multiply two variable values and store the answer in a variableNum1=3
Num2=4
TotalNum=Num2 * Num2 - 5Check if the value of one variable is larger than another variable (using an if statement and the > symbol)Num1=3
Num2=4
if Num2 > Num1 then
print("Num 1 is bigger than Num 2")
endif - 6Output text (string) to the usersomeText="Hello"
print(someText.length) - 7Output the value of a variable to the userNumber="26"
print(Number.length) - 8Output the text AND the value of the variable on one line, by using concatenation (+)print("Your number is: "+(Number.length))
Informações
- Descrição
- FlashCards sobre Algorithm in Pseudocode, criado por Daria DD em 29-11-2020.
- Criado por
- Daria DD
- Visualizações
- 2
- Avaliação
Mais sobre Algorithms and Flowcharts