Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.awt.*;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- int score = 4;
- //if the score is between 1 and 3, the bonus score is score by 10
- //if the score is between 4 and 6, the bonus score is score by 100
- //if the score is 7 and 9, the bonus score is score by 1000
- //if score is 0 or more than 9, we print "Invalid input!"
- //to complete
- if(score >= 1 && score <= 3){
- score = score * 10;
- score *= 10;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment