/***************************************************************/
/* Prof. Dr. Carsten Vogt                                      */
/* FH Koeln, Fak. 07 / Nachrichtentechnik                      */
/* http://www.nt.fh-koeln.de/vogt                              */
/*                                                             */
/* Das Programm zeigt die Wirkungsweise der if-else-Anweisung. */
/***************************************************************/

import java.io.*;

public class IfElse {

 public static void main(String args[]) throws IOException {

  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

  float guthaben;
 
  System.out.println();
  System.out.print("Bitte Guthaben eingeben: ");
  guthaben = Float.parseFloat(in.readLine());
  System.out.println();
  System.out.println("Guthaben = "+guthaben);
  System.out.println();

  if (guthaben > 0)
   { System.out.println("Nicht pleite");
     System.out.println("Glueckwunsch!");
   }
  else {
     System.out.println("Pleite");
     System.out.println("Beileid!");
  }

  System.out.println();
  System.out.println("Bankbericht beendet");

 }

}

