27,975 views
42 votes
42 votes
Write IF() function for student 3, If total mark is greater than 10 then print

the text “you have scored good" else print“ you need to improve" *

User Supi
by
2.9k points

1 Answer

19 votes
19 votes

Answer:

Step-by-step 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 ");

}

Write IF() function for student 3, If total mark is greater than 10 then print the-example-1
User Case
by
2.4k points