Answer and Explanation:
See the attached image for a formatted version of the code.
I have used Java for this example.
See the comments in the code for an explanation of what each line of code does.
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int num = 0;
System.out.print("Please input a number: ");
num = input.nextInt();
if(num > 4300) {
System.out.println("Number is greater than 4300");
} else if(num < 4300) {
System.out.println("Number is less than 4300");
} else {
System.out.println("Number is equal to 4300");
}
}
}