Computer Science, asked by solbeefe, 10 months ago

what is the output of the following program segment ? 10 A = 10 20 C = A^ 2 30 PRINT C (a) 2 (b) 100 (c) 20

Answers

Answered by sanju1143
4

Explanation:

b) is the correct answer

Answered by Equestriadash
5

A = 10

C = A**2

print(C)

The required answer is (b) 100.

You've started by storing the value 10 in variable A.

You then create another value for C [A**2].

[Note that ** indicates exponentiation]

10² is 100 This value is stored in C.

You then ask to print the value of C which is option (b) 100.

The print statement is usually used to send the required output of the expression given. However, if no values is inputted, it will result in a blank line.

Similar questions