Computer Science, asked by bhavikarathod261, 5 months ago

. Find the Output
import numpy as np
X= [1, 2, 3, 99, 99, 3, 2, 1]
x1, x2, x3 = x[:5], x[:-5], x[5:]
print(x1, x2, x3)​

Answers

Answered by Moncheri06
2

Answer:

In computer programming, we use the if statement to control the flow of the program. For example, if a certain condition is met, then run a specific block of code. Otherwise, run another code.

For example assigning grades (A, B, C) based on percentage obtained by a student.

if the percentage is above 90, assign grade A

if the percentage is above 75, assign grade B

if the percentage is above 65, assign grade C

There are three forms of if...else statements in Java.

if statement

if...else statement

if...else if...else statement

Nested if...else statement

Similar questions