CSCI 201 Spring 2004

Short Homework Assignment 1

  1. Work the following problems on page 198 of your text: 3.3-3.5.
  2. Complete the program below to print the following:
    
    import cs1.Keyboard;
    
    public class Question {
       public static void main(String[] args) {
          System.out.println("enter 2 integer numbers");
          int a = Keyboard.readInt();
          int b = Keyboard.readInt();
          // use a conditional statement to generate the correct output
    
    
    
    
       }
    }
    

Turn in a hard copy of your answers at the start of the next class.