Computer Science, asked by kkumari67731gmailcom, 7 hours ago

a=input("Enter a number")

if a>0:

priNt(a*5)

What will be the output if the value entered is 4?

A. 4

B. 20

C. 44444

D. ERROR

A B
C d​

Answers

Answered by ps9286322
0

Answer:

20

Explanation:

because 4×5 20 it may be use full to u and study well

Answered by BrainlyProgrammer
10

Given códe:-

a=input("Enter a number")

if a>0:

⠀⠀⠀print(a*5)

If the value of a=4

Here what it happens

Line 1:- Value entered, a=4

Line 2:- Condition check, Is a>0? Yes 4 is greater than 0

Line 3:- If the above condition is true, control will execute this line, Since 4>0 condition true, it will execute print(a*5)

4*5=20. Therefore output will be 20

Correct Answer:-

  • Option B: 20
Similar questions