Karteikarten
Pseudocode revision
Karten in diesem Stapel (8)
- 1How do you ask the user to enter a number and store that number in a variable in Pseudocode?You use the following code:
age (for e.g.) = input ("Please enter your age: ") - 2How do you store the number 26 in a variable in Pseudocode?With the following code:
x (for e.g.) = 26 - 3How do you multiply 5 by 10 and store the answer in a variable in Pseudocode?With the following code:
answer = 5 * 10 - 4How do you multiply two variable values and store the answer in a variable in Pseudocode?To multiply two numbers you just need the numbers and a * symbol in-between them.
- 5How do you check if the value of one variable is larger than another variable (using an if statement and the > symbol) in Pseudocode?
- 6How do you output text (string) to the user in Pseudocode?You can use the simple code below:
print ("Hello")
or
age = input ("Please enter your age: ") - 7How do you output the value of a variable to the user in Pseudocode?
- 8How do you output the text AND the value of the variable on one line, by using concatenation (+) in Pseudocode?
Informationen
- Beschreibung
- Karteikarten am Pseudocode revision, erstellt von David Hewson am 01/12/2020.
- Erstellt von
- David Hewson
- Aufrufe
- 0
- Bewertung
Mehr zu Algorithms and Flowcharts