Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Last active August 29, 2015 14:07
Show Gist options
  • Save ntakouris/57ee97201b1bda70b967 to your computer and use it in GitHub Desktop.
Save ntakouris/57ee97201b1bda70b967 to your computer and use it in GitHub Desktop.
Flevas this is yours
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