Last active
August 29, 2015 14:07
-
-
Save ntakouris/57ee97201b1bda70b967 to your computer and use it in GitHub Desktop.
Flevas this is yours
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args){ | |
System.out.println("Insert price here:"); | |
Scanner s = new Scanner(System.in); | |
int price = s.nextInt(); | |
System.out.println("20% of the inserted price is : " + (price * 20 / 100)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment