This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 19th, 2011  |  syntax: None  |  size: 0.49 KB  |  views: 46  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class jaspern {
  2.  
  3.         /**
  4.          * @param args
  5.          */
  6.         public static void main(String[] args) {
  7.                
  8.                 int kesk;
  9.                 int lopp;
  10.                
  11.                
  12.                
  13.                 System.out.print("Enter grade average ");
  14.                 kesk = TextIO.getlnInt() ;
  15.         System.out.print ("Enter final exam grade ") ;
  16.         lopp = TextIO.getlnInt() ;
  17.        
  18.        
  19.         if(kesk > 4.5)
  20.                 System.out.println("YES!") ;
  21.         if (lopp==5)
  22.                 System.out.println("YES!");
  23.         else
  24.         System.out.print("NO!");
  25.         }
  26.  
  27. }
clone this paste RAW Paste Data