Advertisement
NelIfandieva

Homework_

Oct 28th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement