19.0k views
1 vote
Write an expression that will print "in high school" if the value of user_grade is between 9 and 12 (inclusive).

User Hack
by
6.7k points

1 Answer

6 votes

Answer:

C#

if(user_grade >=9 && user_grade <=12)

{

Console.WriteLine("In Highschool");

}

Python

if user_grade >= 9 & user_grade <= 12:

print("In Highschool")

Java

if(user_grade >=9 && user_grade <=12)

{

System.println("In Highschool");

}

Step-by-step explanation:

User Njuffa
by
6.0k points