TestQuestions - else System.out.println"x equals 0 int let...

This preview shows page 1 out of 1 page.

// Author: Ashton Innocent Assignment: SumCalcimport java.util.Scanner;public class TestQuestions {public static void main(String[] args) {int x = 0;if (x > 0)System.out.println("x is greater than 0");else if (x < 0)System.out.println("x is less than 0");

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture