URI Problem (Fixed Password) 1114 Solution in Java

Problem Solving, URI

URI Problem (Fixed Password) 1114:
Fixed Password is a basic problem on URI online judge for novice problem solver.
You can find details on this Link.

import java.util.Scanner;

/**
 * @Author : Muhammad Harun-Or-Roshid
 * @Date : Oct 18, 2016
 * @Time : 11:55:58 AM
 */
public class Uri1114 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int password;
        do {
            password = sc.nextInt();
            if (password == 2002) {
                System.out.println("Acesso Permitido");
            } else {
                System.out.println("Senha Invalida");
            }
        }while(password!=2002);

    }
}

0 Comments

You may find interest following article