NelIfandieva

Homework_

Oct 28th, 2019
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. package com.company;
  3. import java.awt.*;
  4. import java.util.Scanner;
  5.  
  6. public class Main {
  7.  
  8.     public static void main(String[] args) {
  9.         int score = 4;
  10.  
  11.  
  12.         //if the score is between 1 and 3, the bonus score is score by 10
  13.         //if the score is between 4 and 6, the bonus score is score by 100
  14.         //if the score is 7 and 9, the bonus score is score by 1000
  15.         //if score is 0 or more than 9, we print "Invalid input!"
  16.         //to complete
  17.         if(score >= 1 && score <= 3){
  18.             score = score * 10;
  19.             score *= 10;
  20.         }
  21.     }
  22. }
RAW Paste Data