Answer:
Explanation:
The following code is written in Java. The if() function is actually called an if statement. The following code can be copied and pasted where you need as long as it is within the scope of the mark variable in order to call it and compare it to 10
if (mark > 10){
System.out.println("you have scored good");
} else {
System.out.println("you need to improve ");
}
Answer:
The last one
Explanation:
I hope this is correct and have a great day
b check your blind spots frequently i guess not sure
Answer:
num = int(input("enter a number:"))
print(num * 8)
Explanation:
num is just a variable could be named anything you want.
if code was like this num = input("enter a number:")
and do a print(num * 8)
we get an error because whatever the user puts in input comes out a string.
we cast int() around our input() function to convert from string to integer.
therefore: num = int(input("enter a number:"))
will allow us to do print(num * 8)