79.4k views
3 votes
Write a pseudocode statement thatassigns the sum of 10 and 14 to the variable total.

User Galit
by
6.5k points

1 Answer

4 votes

Answer:

Declare x,y and total as variables

Set x=10

Set y=14

Set total = x+y

Output Total

Step-by-step explanation:

In this pseudo code we are declaring 3 variables x to hold the value 10 y for holding the the value 14 and total for holding the sum of x and y. We have assign 10 to x 14 to y and then we are assigning the sum of x and y to the total variable.then we are printing the total. Above written is the pseudo code for the same.

User Deltheil
by
6.6k points