Guest User

Untitled

a guest
Sep 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. import console;
  2.  
  3. print("Mark: ");
  4. double mark = readDouble();
  5. double lowest = mark;
  6. while (mark >= 0.0) {
  7.    if (mark < lowest) {
  8.       lowest = mark;
  9.    } else {
  10.    }
  11.    print("Mark: ");
  12.    mark = readDouble();
  13. }
  14. if (lowest >= 0.0) {
  15.    println("Lowest = " + lowest);
  16. } else {
  17.    println("No marks.");
  18. }
Add Comment
Please, Sign In to add comment