Flashcards
Algorithms using pseudocode
Flashcards do conjunto (9)
- 1How would you ask a user for a number then store it in a variable?Number = input(“please enter a number: “)
- 2Store the number 26 in a variable.Number = 26
- 3Multiply 5 by 10 then store answer in a variable.number = 5
number = number * 10 then
... - 4Multiply two variable value and store the answer in a variable.number =5
numberNum = 10
Number = number * numberNum - 5Multiply two variable value and store the answer in a variable.Number = number * numberAmount
- 6Checking if one variable value is larger then another variableIf number > Variable then
- 7Output text to the userPrint(“hello, world!”)
- 8Output the value of a variable to the userNumber =6
Number = number *5 then
Print(number) - 9Output text and variable value to userPrint(“hello, world!” + str(number))
Informações
- Descrição
- FlashCards sobre Algorithms using pseudocode, criado por isaak winstone em 01-12-2020.
- Criado por
- isaak winstone
- Visualizações
- 0
- Avaliação