Flashcards
Answering Algorithm Exam Question using Pseudocode
Flashcards do conjunto (8)
- 1Ask the user to enter a number and store that number in a variablenumber = input("Please enter a number")
- 2Store the number 26 in a variablenumber = 26
- 3Multiply 5 by 10 and store the answer in a variableanswer = 5*10
- 4Multiply two variable values and store the answer in a variableanswer1 = 5*1
answer2 = 5*2
answer3 = answer1*answer2 - 5Check if the value of one of the variables is larger than the other symbolnumber1 = 5*1
number2 = 5*2
if number1 > number2 then
print("Number 1 is bigger") - 6Output text (string) to the userprint("Hello!")
- 7Output the value of a variable to the usernumber = input("Enter number")
print(number) - 8Output the text and the value of the variable on one line, by using concatenationnumber = input("Enter number")
print("Hello! " + number)
Informações
- Descrição
- Year 8 Computing FlashCards sobre Answering Algorithm Exam Question using Pseudocode , criado por Salman Bokhari em 01-12-2020.
- Criado por
- Salman Bokhari
- Visualizações
- 0
- Avaliação