Computer Science, asked by eduguyDEBA, 10 months ago

State the type of errors if any in the following statements:
() switch (n>2)
(ii) System.out.println(100/0);​

Answers

Answered by rohitpranshu2006
1

# Python program to check if

# given number is prime or not

num = 11

# If given number is greater than 1

if num > 1:

# Iterate from 2 to n / 2

for i in range(2, num//2):

# If num is divisible by any number between

# 2 and n / 2, it is not prime

if (num % i) == 0:

print(num, "is not a prime number")

break

else:

print(num, "is a prime number")

hope it will help you ❣️❣️

Read more on Brainly.in - https://brainly.in/question/15206958#readmore

Similar questions